1065 I Think I Need a Houseboat

来源:互联网 发布:服务器防ddos攻击软件 编辑:程序博客网 时间:2024/05/21 08:06
#include<iostream>#define PI 3.1415926using namespace std;int main(void){    int n;    cin>>n;    double x,y;    for(int i=1;i<=n;i++)    {        cin>>x>>y;        cout<<"Property "<<i<<":"            <<" This property will begin eroding in year "            <<(int)(PI*(x*x+y*y)/2/50+1)<<"."<<endl;    }    cout<<"END OF OUTPUT."<<endl;    return 0;}

 
原创粉丝点击