Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = int(input())
- string = ""
- for i in range(1, 32 + 1):
- string += '1' if i <= s else '0'
- if i % 8 == 0 and i != 1:
- print(int(string, 2), end=' ')
- string = ""
- #output
- #24
- #255 255 255 0
- #
- #10
- #255 192 0 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement