Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #https://inf-ege.sdamgia.ru/problem?id=48384
- mn = 10000000000
- for x in range(9):
- for y in range(9):
- a = 8 * 9**4 + 8 * 9**3 + x * 9**2 + 4 * 9 + y + 7 * 11**4 + x * 11**3 + 4 * 11**2 + 4 * 11 + y
- if a % 61 == 0:
- mn = min(mn, a // 61)
- print(mn)
Advertisement
Add Comment
Please, Sign In to add comment