2018/8/30
POJ 1005
#include <iostream>
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include <cmath>
#include <map>
#include <algorithm>
#define pi 3.141592654
using namespace std;
int main()
{
int n;
scanf("%d", &n);
for(int i = 1; i <= n; i++){
double x, y, s;
int year;
scanf("%lf%lf", &x, &y);
s = 0.5 * pi * (x * x + y * y);
year = (int)s / 50;
printf("Property %d: This property will begin eroding in year %d.\n", i, year + 1);
}
printf("END OF OUTPUT.");
return 0;
}