| ||||||||||
| 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 | |||||||||
急救#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator