Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def f(x, y, a):
- return (x < 40) or (y < 50) or (3 * x + 2 * y > a)
- for a in range(1, 1000):
- if all(f(x, y, a) == 1 for x in range(1, 1000) for y in range(1, 1000)):
- print(a)
Advertisement
Add Comment
Please, Sign In to add comment