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 |
这也tle啊?#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