Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 13 https://kpolyakov.spb.ru/school/ege/gen.php?action=viewVar&answers=on&varId=7
- answ = 0
- for x in range(2**20):
- s = bin(x)[2:]
- if s.count('1') % 5 == 0:
- answ += 1
- print(answ)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement