【文件属性】:
文件名称:POJ解题报告--1005
文件大小:466B
文件格式:TXT
更新时间:2014-01-08 08:51:23
POJ解题报告--1005
#include
#define PI 3.1415926
int main()
{
int n,i,m,arr[100];
float x,y,halfcircle;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%f %f",&x,&y);
halfcircle=PI*(x*x+y*y)/2;
m=(int)halfcircle/50+1;
arr[i]=m;
}
for(i=1;i<=n;i++)
{
printf("Property %d: This property will begin eroding in year %d.\n",i,arr[i]);
}
printf("END OF OUTPUT.\n");
return 0;
}