#include<iostream>
using namespace std;
int main_()
{
int n;
while (
cin >> n)
{
int count =
0;
for (
int i =
1; i <= n; ++i)
{
int j = i;
while (j%
5==
0)
{
count++;
j = j/
5;
}
}
cout << count << endl;
}
return 0;
}
int main()
{
int n;
while (
cin >> n)
{
int count =
0;
while (n)
{
count += n /
5;
n /=
5;
}
cout << count << endl;
}
cin.get();
return 0;
}
转载请注明原文地址: https://www.6miu.com/read-56551.html