Advertisement
Guest User

Ptmocanufratelemeu

a guest
Dec 9th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. ifstream fin("vistiernic.in");
  6. ofstream fout("vistiernic.out");
  7.  
  8. int main()
  9. {
  10.     int n, i, x, d, ct=0;
  11.     fin >> n;
  12.     for(i=1;i<=n;++i)
  13.     {
  14.         fin >> x;
  15.         while(x%5==0)
  16.         {
  17.             x/=5;
  18.             ct++;
  19.         }
  20.     }
  21.     fout << ct;
  22.     fin.close();
  23.     fout.close();
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement