OJ-Problems-Source/HDOJ/1065_autoAC.cpp

18 lines
426 B
C++
Raw Normal View History

2016-08-12 10:16:11 +08:00
#include<iostream>
#include<math.h>
#define PI 3.1415926
using namespace std;
int main(){
int m;
double x, y;
cin>>m;
for(int i = 0; i < m; i++){
cin>>x>>y;
double s = PI * (x * x + y * y);
int count = s / 100 + 1;
cout<<"Property "<<i + 1<<
": This property will begin eroding in year "<<count<<"."<<endl;
}
cout<<"END OF OUTPUT."<<endl;
}