1 #include<stdio.h> 2 #include<string.h> 3 #include<algorithm> 4 #include<math.h> 5 using namespace std; 6 int main() 7 { 8 int n,m; 9 scanf("%d",&n); 10 while(n--) 11 { 12 scanf("%d",&m); 13 int sum=0; 14 while(m) 15 { 16 sum+=m/5;m/=5; 17 } 18 printf("%d ",sum); 19 } 20 return 0; 21 }