Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
386 B
1
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
	int n, m, k;
	cin >> n >> m >> k;
	bool mas[100][100];
	int h = 0;
	int b = 0;
	for (int i = 0; i < n; i++) {
		for (int w = 0; w < m; w++) {
			cin >> mas[i][w];
			if (mas[i][w] == 0) {
				h++;
			}
		}
		if (b < h)
			b = h;
		h = 0;
	}
	if (b < k)
		cout << "NO";
	else
		cout << "YES";
	return 0;
}
Leave a Comment