poj 1005
来源:互联网 发布:wps 邮箱 for ubuntu 编辑:程序博客网 时间:2024/06/05 16:21
poj 1005 水题一道大致题意 输入n个浮点数 ,计算浮点数;
#include<stdio.h>
#define pi 3.1415926
int main()
{
int i,j,n;
double x,y;
scanf("%d",&j);
for(i=1;i<=j;i++)
{
scanf("%lf %lf",&x,&y);
n=pi*(x*x+y*y)/100;
printf("Property %d: This property will begin eroding in year %d.\n",i,n+1);
}
printf("END OF OUTPUT.\n");
return 0;
}
此处需要注意 定义的输入为浮点型就好了
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
- 第十周项目1--单步运行
- PAT(A) 1025
- STL顺利容器之双端队列(deque)
- Android开发学习——Android XML解析——DOM解析
- native2ascii
- poj 1005
- 第二十二讲:ListView与Adapter(四)
- 今天第一次写博客
- 第二章 线性表思维导图
- springmvc RequestMapping路径带点
- ChemStations.ChemCAD.v6.3.0.3903 化工流程模拟
- Sescoi.WorkNC.G3.V20.06 模具加工计算机辅助制造(CAM)软件系统
- PTC_COCREATE_V17 PTC直觉式建模解决方案
- UVA - 10282 Babelfish map的应用