解题思路:

注意事项:

参考代码:

package LiXiTiXh;


import java.util.Scanner;


public class A1053 {


    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);

        int[] aa = new int[10];

        int sum = 0;

        int pin = 0;

        int num = 0;

        for (int i = 0; i < aa.length; i++) {

        aa[i]=in.nextInt();

        sum = sum+aa[i];

        }

        pin=sum/10;

        for (int i = 0; i < aa.length; i++) {

            if (aa[i]>pin) {

            num++;

            }

        }

        System.out.println(num);

    }

}


 

0.0分

0 人评分

  评论区

  • «
  • »