poj1005
来源:互联网 发布:apache url重写规则 编辑:程序博客网 时间:2024/04/29 01:30
#include<stdio.h>
#include<math.h>
float x,y;
int n;
double cal;
int year;
//float M_PI=3.1415926;
int main()
{
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
scanf("%f%f",&x,&y);
cal=(x*x+y*y)*M_PI/2/50;
year=(int)ceil(cal);
printf("Property %d: This property will begin eroding in year %d.\n",i,year);
}
printf("END OF OUTPUT.\n");
return 0;
}
#include<math.h>
float x,y;
int n;
double cal;
int year;
//float M_PI=3.1415926;
int main()
{
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
scanf("%f%f",&x,&y);
cal=(x*x+y*y)*M_PI/2/50;
year=(int)ceil(cal);
printf("Property %d: This property will begin eroding in year %d.\n",i,year);
}
printf("END OF OUTPUT.\n");
return 0;
}
- poj1005
- poj1005
- poj1005
- POJ1005
- POJ1005
- poj1005
- poj1005
- POJ1005
- POJ1005
- poj1005
- POJ1005
- poj1005
- poj1005
- Poj1005
- poj1005
- POJ1005
- poj1005
- poj1005
- 开始QT
- Grid++Report报表组件的特点
- Roman numerals BIT1002
- 小结UML
- 用JNI进行Java编程---从Java程序调用C/C++代码
- poj1005
- 解决在 Thinkpad T400 上安装 Windows Server 2012 的驱动问题
- Linux 上的常用文件传输方式介绍与比较
- Win8 输入法切换 (Ctrl + space)个人解决方案
- 原文翻译:绕过Windows RT的代码完整性检查
- net工程师必懂题
- Struts 2 Jquery json浏览器端无刷新分页
- 解决Oracle数据库客户端随机端口连接的问题
- Android 获取本地外网IP、内网IP、计算机名等信息