poj1005
来源:互联网 发布:win7 telnet 端口23 编辑:程序博客网 时间:2024/05/01 00:18
#include<stdio.h>
int main()
{
int i,n;
float pi,a,b,years[1000];
scanf("%d", &n);
pi = 3.14;
for(i=1; i<=n; i++)
{
scanf("%f%f",&a,&b);
years[i]= pi*(a*a + b*b)/100;
}
for(i=1; i<=n; i++)
printf("Property %d: This property will begin eroding in year %d.\n",i,(int)years[i]+1);
printf("END OF OUTPUT.\n");
return 0;
}
int main()
{
int i,n;
float pi,a,b,years[1000];
scanf("%d", &n);
pi = 3.14;
for(i=1; i<=n; i++)
{
scanf("%f%f",&a,&b);
years[i]= pi*(a*a + b*b)/100;
}
for(i=1; i<=n; i++)
printf("Property %d: This property will begin eroding in year %d.\n",i,(int)years[i]+1);
printf("END OF OUTPUT.\n");
return 0;
}
0 0
- poj1005
- poj1005
- poj1005
- POJ1005
- POJ1005
- poj1005
- poj1005
- POJ1005
- POJ1005
- poj1005
- POJ1005
- poj1005
- poj1005
- Poj1005
- poj1005
- POJ1005
- poj1005
- poj1005
- Codeforces Round #304 (Div. 2) D Soldier and Number Game
- leetcode Factorial Trailing Zeroes
- xshell简单使用入门
- 创建兼容Android Studio和eclipse的AS工程
- git checkout 命令详解
- poj1005
- hibernate学习笔记
- HDU 2091 空心三角形
- 北京物流信息管理系统(二)
- version of spring facet could not be detected
- 凯云水利水电工程造价管理系统 技术解析(五) 取费管理(二)
- c++引用与指针的区别(着重理解)
- Java NIO:NIO概述
- mysql退出与登录2