Advertisement
Kevin_Zhang

Untitled

Aug 8th, 2022 (edited)
978
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int a[1001], b[1001];
  4. void array_filter(int n, int *a, int *b, int threshold, int &ans);
  5. int main ()
  6. {
  7.     int n, th;
  8.     cin >> n >> th;
  9.  
  10.     int ans;
  11.     for (int i = 0; i < n; i++)
  12.     {
  13.         cin >> a[i] >> b[i];
  14.     }
  15.     array_filter(n, a, b, th, ans);
  16.     cout << ans << '\n';
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement