Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
必然In Reply To:这也tle啊? Posted by:00 at 2005-04-20 22:12:51 > #include<stdio.h> > long t,a,n,m,i,j,k; > void main() > { > scanf("%d",&t); > for(i=0;i<t;i++) > { > scanf("%ld",&a); > m=0; > for(j=5;j<=a;j+=5) > { > k=0; > n=j; > for(;!(n%5);k++) > n/=5; > m+=k; > } > printf("%ld\n",m); > } > } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator