题解 | #牛牛的水杯#
牛牛的水杯
http://www.nowcoder.com/practice/c196c47c23394bf3bdd4f82a838df6bf
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); double h = scanner.nextDouble(); double r = scanner.nextDouble(); System.out.print((int) (10000 / (3.14 * h * r * r)) + 1); } }