Please read the new rule regarding the restriction on the use of AI tools. ×

radmirkus's blog

By radmirkus, history, 7 years ago, In Russian

why no?

inp = input().split(' ')
n = int(inp[0])
k = int(inp[1])
s = pow(10, k)
x = n
while x%int(s)!=0 or x%int(n)!=0:
	x+=n
print(x)
  • Vote: I like it
  • 0
  • Vote: I do not like it