dxnge

2

Oct 11th, 2021
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. from itertools import product
  2. def f(x,y,w,z):
  3.     return ((x <= w) or (y and (not z))) and ((y <= (not z)) or x and (not w))
  4. a = product([0,1], repeat=4)
  5. print(f'x y w z F')
  6. for x,y,w,z in a:
  7.     if not f(x, y, w, z):
  8.         print(x, y, w, z, 0)
Advertisement
Add Comment
Please, Sign In to add comment