wich test case i didnt considrd ?

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;

}

Check for 5^e {e>5}

N=15625 (=5^6) -> Z(N)=3906

N=78125 (=5^7) -> Z(N)=19531.

Constrain values are given for the selection of correct data type.
Input is always give as specified, so do`t wast the computation on checking the input.

1 Like

thanx …got it !!!