#include <stdio.h>
#define PI 3.1415926
int main(int argc, char **argv)
{
int n;
scanf("%d", &n);
float x1, x2;
int i = 0;
for (i = 1; i <= n; i++)
{
scanf("%f %f", &x1, &x2);
printf("Property %d: This property will begin eroding in year %d.\n",
i, (int)((x1 * x1 / 100 + x2 * x2 / 100) * PI + 0.999));
}
printf("END OF OUTPUT.\n");
return 0;
}
1005
最新推荐文章于 2024-07-21 10:10:06 发布