import java.util.Scanner;
public class Main {
public static void main(String []args){
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
int num = sc.nextInt();
double x,y;
for (int i = 0; i < num; i++) {
x = sc.nextFloat();
y = sc.nextFloat();
double s = java.lang.Math.PI*(Math.pow(x, 2)+Math.pow(y, 2))/2;
int n = 0;
while (s>0) {
s=s-50;
n++;
}
System.out.println("Property " + (i+1)
+ ": This property will begin eroding in year " +n+".");
}
System.out.println("END OF OUTPUT.");
}
}
private static int getYear(Double x, Double y) {
double s = java.lang.Math.PI*(Math.pow(x, 2)+Math.pow(y, 2))/2;
System.out.println(s);
int n = 0;
while (s>0) {
s=s-50;
n++;
}
return n;
}
}
ACM POJ1005
最新推荐文章于 2019-09-09 10:40:03 发布