Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for a in range(-1000, 1000):
- f = True #подошли ли все (x, y) или нет
- for x in range(1, 100):
- for y in range(1, 100):
- if not(((144 % x != 0) or (x % y != 0)) or (x + y > 100) or (a - x > y)):
- f = False
- if f == True:
- print(a)
- exit(0) #завершить программу
- #(не дел(144, x)) or ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement