题解 | #牛牛的水杯#
牛牛的水杯
http://www.nowcoder.com/practice/c196c47c23394bf3bdd4f82a838df6bf
import java.util.Scanner;
// ceil函数向上取整
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double h = sc.nextDouble();
double r = sc.nextDouble();
int result = (int)Math.ceil(10000 / (3.14 * h * r * r));
System.out.println(result);
}
}