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:核心代码两行搞定!125msIn Reply To:核心代码两行搞定!125ms Posted by:20092462 at 2011-02-03 10:04:19 我是新手,看到你代码学会怎么输入了数据了,谢谢啦。。这个是我的代码,当时没想起怎么输入数据。 #include"stdio.h" int main() { __int64 m,num5=0,i,n; scanf("%d",&n); while(scanf("%I64d",&m)!=EOF) { num5=0; for(i=5;i<=m;i*=5) num5+=m/i; printf("%d\n",num5); } return 0; } 嘎嘎 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator