BD1005
来源:互联网 发布:遇见软件客服电话 编辑:程序博客网 时间:2024/06/10 19:41
#include<iostream>
#include<stdlib.h>
using namespace std;
int main()
{
double x=0,y=0;
int n=0;
int years;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>x>>y;
years=int(3.14*(x*x+y*y)/(2*50));
cout<<"Property "<<i+1<<": This property will begin eroding in year "<<years+1<<"."<<endl;
}
cout<<"END OF OUTPUT."<<endl;
return 0;
}
#include<stdlib.h>
using namespace std;
int main()
{
double x=0,y=0;
int n=0;
int years;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>x>>y;
years=int(3.14*(x*x+y*y)/(2*50));
cout<<"Property "<<i+1<<": This property will begin eroding in year "<<years+1<<"."<<endl;
}
cout<<"END OF OUTPUT."<<endl;
return 0;
}
阅读全文
0 0
- BD1005
- Dolby Virtual Speaker是什么
- QT之qss教程-QComboBox
- leetcode题解-151. Reverse Words in a String && 557. Reverse Words in a String III
- Redis学习-3.2:Hash散列详解
- 字节流--字节流缓冲区、字节缓冲流
- BD1005
- 1022. Digital Library (30)-PAT甲级真题
- VS2010-VB.NET中从DataSet获取数据的两种方式
- C 运算符
- MAC下 Android签名生成keystore
- BD1207
- Android开发之TextView中间设置横线,适用于电商项目,商品原价之类的功能。
- Proving Equivalences HDU
- Swift基础--Action的坑