#include <stdio.h>
const float PI = 3.1415926;
int main()
{
int i, N, A;
scanf("%d", &N);
float X, Y;
for( i = 1; i <= N; i++)
{
scanf("%f%f", &X, &Y);
A = (int)((X*X + Y*Y) * PI / 100) + 1;
printf("Property %d: This property will begin eroding in year %d.\n", i, A);
}
printf("END OF OUTPUT.\n");
return 0;
}
计算属性与圆的侵蚀年份
1138

被折叠的 条评论
为什么被折叠?



