| ||||||||||
| 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 | |||||||||
Re:HELP!!!~In Reply To:HELP!!!~ Posted by:90405125 at 2004-12-11 15:12:41 #include<stdio.h>
#include<math.h>
void main(){
float l[10000];
int i,j;
for(i=0;;i++){
scanf("%f",&l[i]);
if(l[i]==0) break;
for(j=2;;j++){
if(l[i]-1/(float)j>0){
l[i]=l[i]-1/(float)j;
}
}
printf("%d card(s)",&j-1);
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator