Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

wich test case i didnt considrd ?

$
0
0

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;

}


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>