Advertisement
nq1s788

15 отрезки максимальный A

May 18th, 2025
696
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. #4872 https://kpolyakov.spb.ru/school/ege/gen.php?action=viewAllEgeNo&egeId=15&cat68=on
  2. answ = 0
  3. p = {2, 4, 6, 8, 10, 12, 14, 16, 18, 20}
  4. q = {5, 10, 15, 20, 25, 30, 35, 40, 45, 50}
  5. for x in range(-1000, 1000):
  6.     if ((1) <= (x in p)) and ((x in q) <= (not (1))):
  7.         answ += 1
  8. print(answ)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement