Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:核心代码两行搞定!125ms

Posted by liaolong at 2011-02-15 15:47:51 on Problem 1401
In 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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator