水题....
java:
import java.util.Scanner;
public class I_Think_I_Need_a_Houseboat_1049 {
public static void main(String[] args) {
double x,y;
double pi=3.1415926;
int n;
Scanner sc=new Scanner(System.in);
n=sc.nextInt();
for(int i=1;i<=n;i++){
x=sc.nextDouble();y=sc.nextDouble();
double s=(x*x+y*y)*pi/2;
int year=(int)s/50;
System.out.println("Property "+i+": This property will begin eroding in year "+(year+1)+".");
}
System.out.println("END OF OUTPUT.");
}
}
c++:
#include<iostream>
using namespace std;
int main(){
double x,y;
double pi=3.1415926;
int n;
cin>>n;
for(int i=1;i<=n;i++){
cin>>x>>y;
double s=(x*x+y*y)*pi/2;
int year=s/50;
cout<<"Property "<<i<<": This property will begin eroding in year "<<year+1<<"."<<endl;
}
cout<<"END OF OUTPUT.";
}