Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #в 7 сс 6665555 (a +1*3) (b+1*4)
- print(6*7**6 + 6*7**5 + 6*7**4 + 5*7**3 + 5*7**2 + 5*7 + 5)
- print(int('6665555', 7))
- x = int(input()) #823142
- a, b = 0, 0
- while x > 0:
- d = x % 7
- if d % 2 == 0:
- a += 1
- else:
- b += 1
- x = x // 7
- print(a)
- print(b)
Advertisement
Add Comment
Please, Sign In to add comment