Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n, m, k = 0, res = 0;
- cin >> n >> m;
- int** matr;
- matr = new int* [n];
- for (int i = 0; i < n; i++)
- {
- matr[i] = new int[m];
- for (int j = 0; j < m; j++)
- {
- cin >> matr[i][j];
- if (matr[i][j] == 0)
- k++;
- }
- if (k == m)
- res++;
- k = 0;
- }
- cout << res;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement