#include <iostream>
using namespace std;
int main() {
int n,k,p;
cin >> n >> k >> p;
int arr[n*k];
int cnt = 0;
for (int i = 0;i < n*k;i++) {
cin >> arr[i];
}
for (int i = 0;i < n;i++) {
int cnt2 = 0;
for (int j = 0;j < k;j++) {
if (arr[i*k+j] == 0) {
cnt2++;
}
}
if (cnt2 < p) {
cnt++;
}
}
cout << cnt;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: