Advertisement
nq1s788

15

Feb 26th, 2024
1,055
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. for a in range(-1000, 1000):
  2.     f = True #подошли ли все (x, y) или нет
  3.     for x in range(1, 100):
  4.         for y in range(1, 100):
  5.             if not(((144 % x != 0) or (x % y != 0)) or (x + y > 100) or (a - x > y)):
  6.                 f = False
  7.     if f == True:
  8.         print(a)
  9.         exit(0) #завершить программу
  10.  
  11. #(не дел(144, x)) or ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement