您的位置:首页 > 其它

ZOJ Problem Set - 1049

2015-07-01 20:42 435 查看

ZOJ Problem Set - 1049

I Think I Need a Houseboat

#include<stdio.h>
#define pi 3.1415926
int main(void)
{
int n;
double x, y;

while (scanf_s("%d", &n) != EOF)
{
for (int i = 0; i < n; ++i)
{
scanf_s("%lf%lf", &x, &y);
int result = (pi*(x*x + y*y) / 100) + 1;
printf("Property %d: This property will begin eroding in year %d.\n", i + 1, result);
}
puts("END OF OUTPUT.");
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: