Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def f(n):
- s = ""
- while n > 0:
- s += str(n % 17)
- n //= 17
- s = s[::-1]
- return s
- x = 5 * 3**1917 + 6 * 2**1878 + 7 * 3**1870 - 1991
- x = f(x)
- A = [0] * 10
- for i in range(len(x)):
- A[int(x[i])] += 1
- print(A)
Advertisement
Add Comment
Please, Sign In to add comment