Advertisement
dxnge

tsk 4

Nov 3rd, 2021 (edited)
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. from itertools import product
  2. def f(x, y, w, z):
  3.     return (y <= x) or not((x <= z) and (z <= 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
Advertisement