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 winner at 2004-11-23 13:43:18 on Problem 1003
#include<stdio.h>
#include<math.h>
void main() {
	float lenth[5];
	int sign=1,deno=2,i;
	float sum=0.00,term;
		while(i=1,i<=5,i++){
         scanf("%.2f\n",lenth[i]);
         while(deno=2,deno<=300,deno++)
	{
		term=sign/deno;
		sum=sum+term;

			 if(sum<=lenth[i]) break;}
			
	}
	printf("%dcard(s)\n",deno-1);
}
什么问题?

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