Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ansy = [1,
- 0,
- 1,
- 0,
- 1,
- 1,
- 1,
- 0,
- 1,
- 1,
- 1,
- 0,
- 1,
- 1,
- 1,
- 0]
- lol = [False, True]
- def impl(a, b):
- return (not a or b)
- def f(a, b, c, d):
- return int(impl(impl(impl(a, b), c), d))
- def check(n1, n2, n3, n4):
- kek = []
- for a in lol:
- for b in lol:
- for c in lol:
- for d in lol:
- a1, b1, c1, d1 = a, b, c, d
- if n1:
- a1 = not a1
- if n2:
- b1 = not b1
- if n3:
- c1 = not c1
- if n4:
- d1 = not d1
- print(a1, b1, c1, d1)
- kek.append(f(a1, b1, c1, d1))
- return kek == lol
- def WOW():
- for a in lol:
- for b in lol:
- for c in lol:
- for d in lol:
- if check(a, b, c, d):
- print("WOW")
- print(a, b, c, d)
- WOW()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement