Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #https://inf-oge.sdamgia.ru/problem?id=16014
- a = [(1, 2), (11,2), (1,12), (11,12), (-11,-12), (-11,12), (-12,11), (10,10), (10,5)]
- for A in range(-1000, 1000):
- cnt = 0 #сколько раз встретилось NO для этого A
- for e in a:
- s = e[0]
- t = e[1]
- if (s > 10) or (t > A):
- cnt += 0
- else:
- cnt += 1
- if cnt == 3:
- print(A) #сколько вывелось, такой и ответ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement