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

为什么老是超时呢???谁能帮帮我啊!!!

Posted by chenhongzhiACM at 2010-11-08 11:34:40 on Problem 1607
#include"stdio.h"
int main()
{
	int number,i;
	while(scanf("%d",&number))
	{
		double length=0;
		printf("Cards  Overhang\n");
		for(i=1;i<=number;i++)
			length=length+1.0/(i*2);
		printf("%5d%10.3f\n",number,length);
	}
	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