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 AC22 at 2008-07-19 09:54:33 on Problem 1607
#include"stdio.h"
int main()
{ int n,i;
  double ans;
  printf("Cards  Overhang\n");
  while(scanf("%d",&n)!=EOF)
  { ans=0.0;
	for(i=1;i<=n;i++)
		ans=ans+1.0/(2*i);
	printf("%5d     %.3lf\n",n,ans);
  }
  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