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