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