Advertisement
nq1s788

15 множества наименьшее A

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