| ||||||||||
| 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 | |||||||||
求助1005题#include <stdio.h>
void main (){
float pi = 3.1415926;
int i;
scanf ("%d",&i);
int k = 0;
int sum = 1;
float x,y;
while (k < i){
scanf ("%f %f",&x,&y);
while ((pi*(x*x+y*y)/2.0) > (sum*50.0))
sum++;
printf ("Property %d: This property will begin eroding in year %d.\n",(k+1),sum);
k++;
}
printf ("END OF OUTPUT.");
}
提交上去是编译错误,实在不知道哪里有问题
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator