Advertisement
nq1s788

14 5 неизвестных

Apr 12th, 2025
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. #1 https://inf-ege.sdamgia.ru/test?id=18072637&nt=True&pub=False
  2. for p in range(9, 25):
  3.     for x in range(p):
  4.         for y in range(p):
  5.             for z in range(p):
  6.                 for w in range(p):
  7.                     if z * p**4 + x * p**3 + y * p**2 + x * p + 4 + x * p**4 + y * p**3 + 6 * p**2 + 5 * p + 8 == w * p**4 + z * p**3 + x * p**2 + 7 * p + 3:
  8.                         print(x * p**3 + y * p**2 + z * p + w)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement