Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 5*216**1156-4*36**1147+6**1153-875
- cnt = list(map(int, [0,0]))
- while x != 0:
- if x % 6 == 5:
- cnt[0] += 1
- if x % 6 == 0:
- cnt[-1] += 1
- x = x // 6
- print(max(cnt) - min(cnt))
Advertisement
Add Comment
Please, Sign In to add comment