Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

用例都对了,为什么还是WA啊?

Posted by cloehui at 2011-02-17 13:24:58 on Problem 1005
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator