dxnge

15

Oct 20th, 2021
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. x = 49**7 + 7**21 - 7
  2. cnt = 0
  3. while x != 0:
  4.     if x % 7 == 6:
  5.         cnt += 1
  6.     x = x // 7
  7. print(cnt)
Advertisement
Add Comment
Please, Sign In to add comment