Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- ifstream fin("vistiernic.in");
- ofstream fout("vistiernic.out");
- int main()
- {
- int n, i, x, d, ct=0;
- fin >> n;
- for(i=1;i<=n;++i)
- {
- fin >> x;
- while(x%5==0)
- {
- x/=5;
- ct++;
- }
- }
- fout << ct;
- fin.close();
- fout.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement