| ||||||||||
| 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 | |||||||||
用例都对了,为什么还是WA啊?#include <stdio.h>
int main () {
int n, i ,year;
double x, y, r, s;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
scanf ("%lf%lf", &x, &y);
r = x > y ? x : y;
s = 3.1415926 * r * r / 2.;
year = s / 50;
printf ("Property %d: This property will begin eroding in year %d.\n", i, year + 1);
}
printf ("END OF OUTPUT.\n");
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator