Advertisement
Korotkodul

N13

Dec 20th, 2022
713
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. x = 3 * 125**6 + 2 * 25**9 + 5**12 - 625
  2.  
  3. def to(x):
  4.     r = ''
  5.     while x > 0:
  6.         r += str(x % 5)
  7.         x //= 5
  8.     r = r[::-1]
  9.     return r
  10. s = to(x)
  11. print(s)
  12.  
  13. k = 0
  14. for i in s:
  15.     if i == '0':
  16.         k += 1
  17.  
  18. print(k)
  19.  
  20. #print(to(25))
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement