import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int times,years,count = 0;
double x,y,t,area;
Scanner scan = new Scanner(System.in);
times = scan.nextInt();
//思路:
for(int i=0;i<times;i++){
x = scan.nextDouble();
y = scan.nextDouble();
if(x==0&&y<=0){
return;
}
count++;
area = (double) (Math.PI*(x*x+y*y)/2);
years = (int) Math.ceil((area/50));
System.out.println("Property "+count+": This property will begin eroding in year "+years+".");
}
System.out.println("END OF OUTPUT.");
}
}
Poj1005
最新推荐文章于 2020-08-07 16:06:04 发布