核心部分int count static double average static double value static double sum0public static void main String args Scanner sc new Scanner System.in int count sc.nextInt double value new double count for int i0i count i value i sc.nextDouble sum sum value i sc.close average sum count for int i0i count i if value i average System.out.println大于平均数的数value i