Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #define N 0xff
- void makeTable(char *c) {
- int i, j, r;
- for (i = 0; i <= N; i++) {
- r = 1; j = 95;
- while (j--) r = r * i % 323;
- c[i] = r;
- }
- }
- int main(void) {
- char c[N];
- int d;
- makeTable(c);
- while ((d = getchar()) != EOF) putchar(c[d]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement