Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import product
- def f(x, y, w, z):
- return (x and z) or ((w <= x) == (z <= y))
- print(f'x y w z F')
- a = product([0, 1], repeat=4)
- for x,y,w,z in a:
- if not f(x,y,w,z):
- print(x, y, w, z, 0)
Advertisement
Add Comment
Please, Sign In to add comment