OJ-Problems-Source/HDOJ/1124_autoAC.cpp
2016-08-13 10:51:15 +08:00

20 lines
297 B
C++

#include <stdio.h>
#include <stdlib.h>
int main()
{
int t,n,sum;
scanf("%d",&t);
while(t--)
{
scanf("%d",&n);
sum=0;
while(n!=0)
{
n=n/5;
sum+=n;
}
printf("%d\n",sum);
}
return 0;
}