Submission #480278

# Submission time Handle Problem Language Result Execution time Memory
480278 2021-10-15T12:43:13 Z Jarif_Rahman Pizza (COCI21_pizza) C++17
50 / 50
1 ms 204 KB
#include <bits/stdc++.h>
#define pb push_back
#define f first
#define sc second
using namespace std;
typedef long long int ll;
typedef string str;
int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    int n, m, ans = 0;
    cin >> n;
    vector<bool> bl(200, 1);
    while(n--){
        int x; cin >> x;
        bl[x] = 0;
    }
    cin >> m;
    while(m--){
        bool bll = 1;
        int k; cin >> k;
        while(k--){
            int x; cin >> x;
            bll&=bl[x];
        }
        if(bll) ans++;
    }
    cout << ans << "\n";
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct