C style constants by

main(N){char S[9];for(;gets(S);printf("%d\n",N))sscanf(S,S[1]-'x'?*S-48?"%d":"%o":"%x",&N);}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page