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

哪位帮我看看错哪了?wrong answer

Posted by IC0590501532 at 2005-11-25 14:21:33 on Problem 1003
#include <stdio.h>
#include <math.h>
void main(){
	int i=1;
	float l,d=0.00;
	scanf("%f",&l);
	while(l!=0.00){
        while(d<l){
		    i++;
		    d=(float)1/i+d;
		}
	    printf("%d card(s)\n",i-1);
		scanf("%f",&l);
	}
}

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