您的位置:首页 > 其它

HDU 1065 - I Think I Need a Houseboat

2016-05-10 23:22 288 查看
又是恶心人的水题

圆周率取3.1415926就啥事没有..

#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
double a,b;
int n;
int main()
{
scanf("%d",&n);
for(int k=1;k<=n;k++)
{
for(int i=1;i<=n;i++)
{
scanf("%lf%lf",&a,&b);
int ans=(a*a+b*b)*(3.1415926)/100;
printf("Property %d: This property will begin eroding in year %d.\n",k++,ans+1);
}
puts("END OF OUTPUT.");
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: