Advertisement
Guest User

CDVR3.3

a guest
Nov 6th, 2022
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | Source Code | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int t; cin>>t;
  8.     while(t--)
  9.     {
  10.         long n,k,c=0; cin>>n>>k;
  11.         while(n--)
  12.         {
  13.             long a; cin>>a;
  14.             if (a<=k) c++;
  15.         }
  16.         cout<<c<<'\n';
  17.     }
  18.     return 0;
  19. }
Tags: CDVR3.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement