1005:I Think I Need a Houseboat

  • Post author:
  • Post category:其他


#include <iostream>

#include <cmath>

using namespace std;

#define PI 3.1415926535

int main(){


int n=0;

double x=0,y=0;

cin>>n;

for(int i=0;i<n;i++){


cin>>x>>y;

cout<<“Property “<<i+1<<“: This property will begin eroding in year ”

<< (int)ceil(PI*(x*x+y*y)/100.0) <<“.”<<endl;

}

cout << “END OF OUTPUT.” << endl;

return 0;

}



版权声明:本文为qq_53826699原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。