http://acm.pku.edu.cn/JudgeOnline/problem?id=1005
算法描述:
1)輸入N;
2)k=1;
3)輸入x,y;
4)z=(int)(pai*r^2/100+1);輸出結果
5)k++;if(k<=N)goto 3);
6)輸出:END OF OUTPUT;
7)stop;
#include"iostream"
#include"stdio.h"
#define pai 3.141592653
using namespace std;
int main()

{
int N,Z;
float x,y;
scanf("%d",&N);
for(int k=1;k<=N;k++)
{
scanf("%f%f",&x,&y);
Z=(int)(pai*(x*x+y*y)/100+1);
printf("Property %d: This property will begin eroding in year %d.\n",k,Z);
}
printf("END OF OUTPUT.\n");
return 0;
}

