fork download
  1. j,c;f(char*s){for(j=8;c=strtol(s,0,j);j=j*j/6)isprint(c)?printf("%c ",c):0;}
  2.  
  3. #include <stdio.h>
  4. #include <ctype.h>
  5.  
  6. int main (int argc, char **argv) {
  7. int i;
  8.  
  9. char *testcases[] = {
  10. "31", "47", "69", "7A",
  11. "100", "156", "189", "potaTO",
  12. "5G", "19", NULL
  13. };
  14.  
  15. for (i = 0 ; testcases[i]; i++) {
  16. f(testcases[i]);
  17. puts("");
  18. }
  19.  
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
1 
' / G 
E i 
z 
@ d 
n