首页 > 代码库 > 代码1005

代码1005

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <cmath>
#include <algorithm>
#include <string>
using namespace std;
const double pi=3.141592653;
int main()
{
int num;
double x,y;
cin>>num;
for(int i=0;i<num;i++)
{
	cin>>x>>y;
    double result=floor((x*x+y*y)*pi/2/50)+1;
    cout<<"Property "<<i<<": This property will begin eroding in year "<<result<<"." <<endl;
}
cout<<"END OF OUTPUT."<<endl;
return 0;
}

  

代码1005