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

Not today

Revision ru1, by radmirkus, 2017-09-17 17:47:44

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)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
ru1 Russian radmirkus 2017-09-17 17:47:44 173 ?yes (опубликовано)