nq1s788

5

Nov 12th, 2025
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. answ = 10000000000000
  2. for n in range(100000):
  3.     s = bin(n)[2:]
  4.     s = s + str(s.count('1') % 2)
  5.     s = s + str(s.count('1') % 2)
  6.     r = int(s, 2)
  7.     if r > 43:
  8.         answ = min(answ, r)
  9. print(answ)
Advertisement
Add Comment
Please, Sign In to add comment