nq1s788

15 с множествами (максимальный A)

May 12th, 2025
434
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&cat67=on&cat68=on
  2. answ = 0
  3. p = set([2, 4, 6, 8, 10, 12, 14, 16, 18, 20])
  4. q = set([5, 10, 15, 20, 25, 30, 35, 40, 45, 50])
  5. for x in range(60):
  6.     if (1 <= (x in p)) and ((x in q) <= 0):
  7.         answ += 1
  8. print(answ)
Advertisement
Add Comment
Please, Sign In to add comment