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

水题~

Posted by gaoyunhenhao at 2010-06-08 00:37:09 on Problem 1005
#include <iostream>
#include <cmath>
using namespace std;

#define PI 3.1415926

int main(){
	int n;
	double x = 0;
	double y = 0;
	double s = 0;

	cin >> n;
	for(int i = 0;i < n;i++){
		cin >> x >> y;
		s = PI * (x*x + y*y) / 2;
		cout << "Property "<< i+1 <<": This property will begin eroding in year "<< ceil(s/50) <<"."<< endl;
	}
	cout << "END OF OUTPUT."<<endl;
}

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