# include <iostream># include<math.h>using namespace std;const double q=acos(-1);int main(){ float t,n; double x,y; double r; cin>>t; for(int i=1;i<=t;i++) { cin>>x>>y; r=x*x+y*y; n=q*r; cout<<"Property"<<' ' <<i<<": This property will begin eroding in year " <<(int)(n/100.0) + 1<<"."<<endl; } cout<<"END OF OUTPUT."<<endl; return 0;}

评论