Advertisement
nq1s788

15

Sep 21st, 2024
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. #https://inf-ege.sdamgia.ru/problem?id=19067
  2. for a in range(100):
  3.     flag = True #подходит ли a
  4.     for x in range(100):
  5.         for y in range(100):
  6.             if not ((x + 2 * y < a) or (y > x) or (x > 30)):
  7.                 flag = False
  8.     if flag:
  9.         print(a)
  10.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement