nq1s788

14 c x

Dec 10th, 2025
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. #https://inf-ege.sdamgia.ru/problem?id=59719
  2. for x in range(15):
  3.     a = 9 * 22**7 + 8 * 22**6 + x * 22**5 + 7 * 22**4 + 9 * 22**3 + 6 * 22**2 + 4 * 22**1 + 1 + 2*22**4 + 5*22**3 + \
  4.         x*22**2 + 4*22 + 9 + 6*22**3 + 3*22**2 + x*22 + 5
  5.     if (a % 21) == 0:
  6.         print(a // 21)
Advertisement
Add Comment
Please, Sign In to add comment