Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int n, d, r, cnt, a, aux;
  5.  
  6. int main(){
  7.     ios_base::sync_with_stdio(0), cin.tie(0);
  8.     cin >> n >> d >> r;
  9.     aux = n;
  10.     while(aux--) cin >> a, cnt += (a <= d);
  11.     cout << (d > r ? n : (cnt+1)/2) << endl;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement