Advertisement
Korotkodul

dem13.n2

Jun 13th, 2023 (edited)
576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. def f1(x,y,z,w):
  2.     return (w <= z) == (y <= x)
  3.  
  4. def f2(x,y,z,w):
  5.     return (w <= z) and (x != y)
  6.  
  7. v= [0,1]
  8. print('x y z w F1 F2')
  9. for x in v:
  10.     for y in v:
  11.         for z in v:
  12.             for w in v:
  13.                 F1 = f1(x,y,z,w)
  14.                 F2 = f2(x,y,z,w)
  15.                 #if F1 == 0 or F2 == 0:
  16.                     #print(x,y,z,w,int(F1),int(F2))
  17.                 if F1 == 0 and F2 == 1:
  18.                     print(x,y,z,w,int(F1),int(F2))
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement