Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = input()
- for i in range(1, 10):
- buf = int(s.replace('*', str(i)))
- now = 1
- j = 2
- while (now < buf):
- now *= j
- j += 1
- if (now == buf):
- print(i)
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement