base convert by kotauchi

x=lambda v,b:v!=0 and x(v/b,b)*10+v%b\x0d
while 1:print x(*map(int,raw_input().split()))

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

download

return to the top page