Advertisement
nq1s788

14 (x и y)

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