base convert by

char*o;v;main(r){for(;v||~scanf("%d%d",o=&v,&r,o&&puts(o));v/=r)*--o=v%r+(v%r<10?48:87);}

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

download

return to the top page