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 ferrettemp at 2005-01-17 23:46:29 on Problem 1607
#include <stdio.h>
void main()
{
	float xinxi[100000],sum=0;
	long i,shu[1000],n;
	for (i=1;i<100000;i++)
	{
		sum+=1.000000/(2*i);
		xinxi[i]=sum;
	}
	n=0;
	while (scanf("%ld",&shu[n])!=-1)
		n++;
	printf("Cards  Overhang\n");
	for (i=0;i<n;i++)
		printf("%5ld%10.3f\n",shu[i],xinxi[shu[i]]);
}

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