base convert by msk

r;b(n){n&&b(n/r)+putchar(n%r+48);}main(n){for(;~scanf("%d%d",&n,&r);puts(""))b(n);}

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

download

return to the top page