fork download
  1. import java.util.*;
  2. class CLBMUP{
  3. public static void main(String args[])throws Exception{
  4. Scanner sc = new Scanner(System.in);
  5. int T = sc.nextInt();
  6. while(T-->0){
  7. int N = sc.nextInt();
  8. int S0 = sc.nextInt();
  9. int count = 0;
  10. for(int i=0; i<N; i++)
  11. if(sc.nextInt()>S0)
  12. count++;
  13. System.out.println(count);
  14. }
  15. }
  16. }
  17.  
Success #stdin #stdout 0.14s 321280KB
stdin
2
4
1 2 3 4 5
5
1 10 100 1000 10000 100000
stdout
4
5