Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- answ = 1000000
- for n in range(1000000):
- s = bin(n)[2:]
- if s.count('1') % 2 == 0:
- s += '00'
- else:
- s += '11'
- r = int(s, 2)
- if r > 114:
- answ = min(answ, r)
- print(answ)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement