mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
20 lines
297 B
C++
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;
|
||
|
}
|