/** * 第三题的解题思路 */ public class Main2 { /* * * */ public static float getExpect(int n, int [] Xi,double total) { int maxValue=Xi[Xi.length-1]; double res=0.f; double pre=0.f; for(int j=1;j<=maxValue;j++) { double temp=1; for (int i ...