dxnge

tsk 3

Nov 3rd, 2021 (edited)
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. from itertools import product
  2. def f(a,b,c,d):
  3.     return (not(a) and not(b)) or (b == c) or d
  4. a = product([0,1], repeat=4)
  5. print(f'a b c d F')
  6. for a, b, c, d in a:
  7.     if not f(a,b,c,d):
  8.         print(a, b, c, d, 0)
Advertisement
Add Comment
Please, Sign In to add comment