Advertisement
MegaVerkruzo

Untitled

Nov 18th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. s = input()
  2. for i in range(1, 10):
  3. buf = int(s.replace('*', str(i)))
  4. now = 1
  5. j = 2
  6. while (now < buf):
  7. now *= j
  8. j += 1
  9. if (now == buf):
  10. print(i)
  11. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement