public class Test24 { public static void main(String[] args) { // 鸡蛋0.1元一个,鸭蛋3元一个,鹅蛋6元一个.求一百元买一百个蛋. for (int i = 1; i <= 1000; i++) { for (int j = 1; j <= 100 / 3; j++) { for (int k = 1; k <= 100 / 6; k+…
6.5 There is a building of 100 floors. If an egg drops from the Nth floor or above, it will break. If it's dropped from any floor below, it will not break. You're given two eggs. Find N, while minimizing the number of drops for the worst case 这道题说有10…