def f(x, y, A): return (78_125 != y + 4*x) or (A > x) and (A > y) ''' (известно) -> неизвестное = 1 (78_125 = y + 4*x) -> (A > x) and (A > y) = 1 x = 1 --> y = 78_121 --> (A > 1) and (A > 78_121) ==> A > 78_121 x = 19531 --> y = 1 --> (A > 19531) and (A > 1) ==> A > 19531 ответ: 78_122 ''' ##maxA = 15625 # 78_125 ##for A in range(0, maxA): ## if all(f(x, y, A) for x in range(0, maxA) for y in range(0, maxA)): ## ans = A ## break ##print(ans)