OJ-Problems-Source/HDOJ/1124_autoAC.cpp

20 lines
297 B
C++
Raw Normal View History

2016-08-13 10:51:15 +08:00
#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;
}