| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
哪位帮我看看错哪了?wrong answer#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator