public static void main(String[] args) {

      Scanner sc = new Scanner(System.in);

    int[] H = new int[10];

    for(int i = 0; i < 10; i++){

      int  x = sc.nextInt();

        H[i]= x;

    }


    Scanner sc2 = new Scanner(System.in);

    int height = sc2.nextInt();

    int count=0;

    for(int i=0;i<10;i++){

        if(height+30>=H[i]) count++;

}

    System.out.print(count);

}
为什么是0??