nq1s788

14 с тремя переменными

Dec 10th, 2025
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. #https://inf-ege.sdamgia.ru/test?theme=247
  2. for p in range(10, 100):
  3.     for x in range(p):
  4.         for y in range(p):
  5.             if 3 * p**3 + 2 * p**2 + x * p + 8 + x * p**3 + x * p**2 + x * p + 9 == y * p ** 3 + y * p**2 + 2:
  6.                 print(y * p**2 + y * p + x)
  7.  
Advertisement
Add Comment
Please, Sign In to add comment