dxnge

14

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