aboutsummaryrefslogtreecommitdiff
path: root/codechef/chefAndIpcCertificates/chefAndIpcCertificates.cpp
blob: 03e93c73be47521f4dd768a00eca284b10204f51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <bits/stdc++.h>

using namespace std;

int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, m, k;
  cin >> n >> m >> k;
  int ans = 0;
  for (int i = 0; i < n; i++) {
    vector<int> v(k);
    for (int &x : v)
      cin >> x;
    int q;
    cin >> q;
    if (accumulate(v.begin(), v.end(), 0) >= m && q <= 10) {
      ans++;
    }
  }
    cout << ans << '\n';
}