这道题要读懂题目。 海岸是以半个圆形的形状在被腐蚀。 #include<iostream> using namespace std; int main(){ int n,years,time(1); float x,y,pai(3.1416f); cin>>n; while(n--){ cin>>x>>y; years=pai*(x*x+y*y)/100.0+1; cout<<"Property "<<time<<": This property will begin eroding in year "<<years<<"."<<endl; ++time; } cout<<"END OF OUTPUT."<<endl; return 0; }