#include <stdio.h>
int main()
{
int i,k,s;
float a,b;
scanf("%d",&k);
for(i=1;i<=k;i++)
{scanf("%f%f",&a,&b);
s=0.01*3.14*(a*a+b*b)+1;
printf("Property %d: This property will begin eroding in year %d.\n",i,s);}
printf("END OF OUTPUT.\n");
return 0;
int main()
{
int i,k,s;
float a,b;
scanf("%d",&k);
for(i=1;i<=k;i++)
{scanf("%f%f",&a,&b);
s=0.01*3.14*(a*a+b*b)+1;
printf("Property %d: This property will begin eroding in year %d.\n",i,s);}
printf("END OF OUTPUT.\n");
return 0;
}
真他妈要死的节奏!!!题目看半死没看懂只好又去百度。。。自己重新说下意思:你输入一个坐标,判断此坐标何时被淹没,以半圆的形式淹没,这样就需要半径。再一个就是从第一年起算,最后不满一年按一年算,这样就要加上1.