You are viewing a single comment's thread. Return to all comments →
if name == 'main': n = int(input()) output = 1 j = 1 for i in range(2,n+1): if i%(10**j)==0: j = j+1 multiplier = 10**j output = output*multiplier+i
print(output)
Seems like cookies are disabled on this browser, please enable them to open this website
Print Function
You are viewing a single comment's thread. Return to all comments →
if name == 'main': n = int(input()) output = 1 j = 1 for i in range(2,n+1): if i%(10**j)==0: j = j+1 multiplier = 10**j output = output*multiplier+i