dxnge

10

Oct 19th, 2021
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. x = 5*216**1156-4*36**1147+6**1153-875
  2. cnt = list(map(int, [0,0]))
  3. while x != 0:
  4.     if x % 6 == 5:
  5.         cnt[0] += 1
  6.     if x % 6 == 0:
  7.         cnt[-1] += 1
  8.     x = x // 6
  9. print(max(cnt) - min(cnt))
Advertisement
Add Comment
Please, Sign In to add comment