base convert by nooodl

while 1:\x0d
 n,b=map(int,raw_input().split());s=''\x0d
 while n:s+=`n%b`;n/=b\x0d
 print s[::-1]

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

download

return top