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 |
Re:郁闷!!无缘无故的错!!!In Reply To:郁闷!!无缘无故的错!!! Posted by:hzx621 at 2005-09-09 14:16:35 #include"stdio.h" #include"math.h" void main() { unsigned long n,i,j,t,k; scanf("%ld",&n); while(n--) { scanf("%ld",&t); for(i=1,k=0;i<=13;i++) { j=(unsigned)pow(5,i); k+=t/j; } printf("%ld\n",k); } } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator