解题思路:
注意事项:注意她还有个板凳30
参考代码:
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
int[] array=new int[a];
int n=0;
for(int i=0;i<a;i++){
array[i]=sc.nextInt();
if(array[i]>b+30){
n++;
}
}
System.out.print(n);
}
}
0.0分
0 人评分
【蟠桃记】 (C语言代码)浏览:785 |
矩阵转置 (C语言代码)浏览:1522 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:638 |
C语言程序设计教程(第三版)课后习题8.8 (C语言代码)浏览:635 |
C语言程序设计教程(第三版)课后习题9.10 (C语言代码)浏览:548 |
Tom数 (C语言代码)浏览:492 |
大神老白 (C语言代码)浏览:600 |
川哥的吩咐 (C语言代码)浏览:609 |
整除问题 (C语言代码)浏览:518 |
C语言训练-自守数问题 (C语言代码)浏览:740 |