Farz0l1x

Untitled

Feb 24th, 2024
689
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. def f(n):
  2.     s = ""
  3.     while n > 0:
  4.         s += str(n % 25)
  5.         n //= 25
  6.     s = s[::-1]
  7.     return s
  8.  
  9. n = 3 * 3125**9 + 2 * 625**8 - 4 * 625**7 + 3 * 125**6 - 2 * 25**5 - 2024
  10. n = f(n)
  11. print(n.count('0'))
Advertisement
Add Comment
Please, Sign In to add comment