dxnge

20

Dec 6th, 2021
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. nums = []
  2. for x in range(100):
  3.     for y in range(100):
  4.         num = (3+2*4**x)*4**x+3+4**y
  5.         sm = 0
  6.         while num > 0:
  7.             sm += num%4
  8.             num //= 4
  9.         nums.append(sm)
  10.         print(x,y)
  11. print(max(nums))
  12.  
Advertisement
Add Comment
Please, Sign In to add comment