i ws trying this q. link text ,working on all test cases stil showing wrong ansr …HELP !!!
using namespace std;
int main()
{
unsigned long int t[100000],n,x,y,j,a,i,p;
scanf("%u",&a);
if(a>=1 && a<=100000)
{
for(i=1;i<=a;i++)
{
scanf("%u",&t[i]);
}
for(j=1;j<=a;j++)
{if(t[j]>=1 && t[j]<=1000000000)
{ x=0;
for(p=1;p<=t[j];p++)
{
t[j]=t[j]/5;
x=x+t[j];
}
printf("%d\n",x);}
else
if(t[j]==0)
goto LOOP ;
}
}
LOOP:
return 0;
}