base convert by

B(a,b){if(!a)return;B(a/b,b);printf("%d",a%b);}main(a,b){for(;~scanf("%d%d",&a,&b);B(a,b),puts(""));}

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

download

return to the top page