Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdio>
- #include <cstdlib>
- #include <cstring>
- #include <cctype>
- #include <cmath>
- #include <algorithm>
- #include <bitset>
- #include <vector>
- #include <stack>
- #include <queue>
- #include <set>
- #include <map>
- /*
- Team: BalΓ£o Vermelho
- */
- int main() {
- int n, m, cont, x;
- bool todos_jogos;
- while(scanf("%d %d", &n, &m) != EOF) {
- cont = 0;
- for(int i = 0; i < n; i++) {
- todos_jogos = true;
- for(int j = 0; j < m; j++) {
- scanf("%d", &x);
- if (x == 0)
- todos_jogos = false;
- }
- if(todos_jogos)
- cont++;
- todos_jogos = true;
- }
- printf("%d\n", cont);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement