Advertisement
nq1s788

15

Oct 2nd, 2024
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. #https://inf-ege.sdamgia.ru/problem?id=9804
  2. for a in range(1000):
  3.     f = False #нашелся ли x, на котором не выполняется
  4.     for x in range(1000):
  5.         if not ((x & 29 != 0) <= ((x & 17 == 0) <= (x & a != 0))):
  6.             f = True
  7.             break
  8.     if not f:
  9.         print(a)
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement