POJ 1005
来源:互联网 发布:php办公管理系统 编辑:程序博客网 时间:2024/06/15 20:42
#include <stdio.h>
int main(void)
{
double d_half_pi = 1.5707963;
double d_tmp = d_half_pi/50;
int n,i;
scanf("%d",&n);
for(i = 1 ; i <= n;++i)
{
double d_x,d_y;
scanf("%lf %lf",&d_x,&d_y);
printf("Property %d: This property will begin eroding in year %d.\n",
i,
(int)((d_x*d_x + d_y*d_y)*d_tmp + 1));
}
printf("END OF OUTPUT.\n");
}
int main(void)
{
double d_half_pi = 1.5707963;
double d_tmp = d_half_pi/50;
int n,i;
scanf("%d",&n);
for(i = 1 ; i <= n;++i)
{
double d_x,d_y;
scanf("%lf %lf",&d_x,&d_y);
printf("Property %d: This property will begin eroding in year %d.\n",
i,
(int)((d_x*d_x + d_y*d_y)*d_tmp + 1));
}
printf("END OF OUTPUT.\n");
}
0 0
- POJ 1005
- POJ-1005
- POJ 1005
- poj 1005
- POJ 1005
- POJ 1005
- POJ 1005
- POJ-1005
- POJ 1005
- poj 1005
- POJ 1005
- poj 1005
- poj 1005
- POJ 1005
- poj 1005
- poj 1005
- poj 1005
- POJ-1005
- 半卷湘帘半掩门,碾冰为土玉为盆——客户端检测
- 消息机制之Looper
- Linus,一生只为寻找欢笑(完全版)
- 用sift检测模糊图像
- 安卓开发 第三篇 我的安卓应用架构设计-----Responce类
- POJ 1005
- Eclipse启动Tomcat错误:Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are alread
- 消息机制之Handler
- POJ 1006
- 南京理工大学第八届程序设计大赛(校外镜像)A题
- Flex 设置WMODE 后滚轮失效的解决方法
- SQLite 约束
- Android Service使用拾遗[阿里工程师分享]
- iOS开发-Block