poj 1005
来源:互联网 发布:sql not exists用法 编辑:程序博客网 时间:2024/05/16 10:00
#include<stdio.h>
int main()
{
int n;
int i,j;
double x,y;
scanf("%d",&n);
for(j=1;j<=n;j++)
{
scanf("%lf%lf",&x,&y);
x=3.14*(x*x+y*y);
y=x/100.0;
printf("Property %d: This property will begin eroding in year %d.\n",j,(int)y+1);
}
printf("END OF OUTPUT.\n");
return 0;
int main()
{
int n;
int i,j;
double x,y;
scanf("%d",&n);
for(j=1;j<=n;j++)
{
scanf("%lf%lf",&x,&y);
x=3.14*(x*x+y*y);
y=x/100.0;
printf("Property %d: This property will begin eroding in year %d.\n",j,(int)y+1);
}
printf("END OF OUTPUT.\n");
return 0;
}
poj里的c语言格式比较变态,以后尽量用c++提交;
一不小心导致我错了几次,还好这个改过来了
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
- 第15章-输入/输出 --- 字节流和字符流
- 第15章-输入/输出 --- 理解Java的IO流
- 第15章-输入/输出 --- 重定向标准输入/输出
- 第15章-输入/输出 --- 处理流的用法
- 第15章-输入/输出 --- File类
- poj 1005
- NYOJ 711 最舒适的路线(并查集)
- Linux /bin, /sbin, /usr/bin, /usr/sbin 区别
- 手把手搭建教你搭建vim的IDE环境
- [C/C++]相对路径&绝对路径 斜杠&反斜杠的区别
- Java堆和栈的区别
- 【数论基础算法合集】
- Java排序算法6:归并排序
- 马伊琍晒“哺乳照”的四重智慧