fork download
  1. def imp(a, b):
  2. return not a or b
  3.  
  4. def f(a, x):
  5. return imp(x & 9 == 0, imp(x & 19 != 0, x & a != 0))
  6.  
  7. a = 0
  8.  
  9. while not all(f(a, x) for x in range(32)):
  10. a += 1
  11.  
  12. print(a)
Success #stdin #stdout 0.04s 9592KB
stdin
Standard input is empty
stdout
18