//计算出他的土地会因为河流的侵袭而丧失
//POJ 1005
#include<stdio.h>
#include<math.h>
int num_props;
float x, y;
int i;
double calce;
int years;
int main()
{
scanf("%d",&num_props);
for(i=1;i<=num_props;++i)
{
scanf("%f %f",&x,&y); //x,y坐标与(0,0)构成半圆的面积
calce=(x*x+y*y)*M_PI/2/50;
years=ceil(calce);
printf("Preperty %d:This property will begin eroding in years %d.\n",i,years);
}
printf("END OF OUTPUT.\n");
return 0;
}
//POJ 1005
#include<stdio.h>
#include<math.h>
int num_props;
float x, y;
int i;
double calce;
int years;
int main()
{
scanf("%d",&num_props);
for(i=1;i<=num_props;++i)
{
scanf("%f %f",&x,&y); //x,y坐标与(0,0)构成半圆的面积
calce=(x*x+y*y)*M_PI/2/50;
years=ceil(calce);
printf("Preperty %d:This property will begin eroding in years %d.\n",i,years);
}
printf("END OF OUTPUT.\n");
return 0;
}