Farz0l1x

Untitled

Mar 3rd, 2023
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. from itertools import *
  2. def f(x, y, z, w):
  3.     return (x <= y) or not(w <= z)
  4. table = [(1, 0, 0, 1), (0, 0, 0, 1), (1, 0, 1, 1)]
  5. for p in permutations('wxyz'):
  6.     if [f(**dict(zip(p, r))) for r in table] == [0, 0, 0]:
  7.         print(p)
Advertisement
Add Comment
Please, Sign In to add comment