Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #https://inf-ege.sdamgia.ru/problem?id=70540
- cnt = 0
- for x in range(0, 2048):
- s = bin(x)[2:]
- if (s.count('1') + 8) % 5 != 0:
- cnt += 1
- print(cnt)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement