Submission #977004

# Submission time Handle Problem Language Result Execution time Memory
977004 2024-05-07T10:16:49 Z vjudge1 Pizza (COCI21_pizza) C++17
50 / 50
1 ms 348 KB
#include <bits/stdc++.h>
using namespace std;

int main(){
    int n;
    cin>>n;
    int a[n];
    for (int i=0;i<n;i++)cin>>a[i];
    int m;
    cin>>m;
    int cnt=0;
    while(m--){
        int k;
        cin>>k;
        bool b=1;
        while (k--){
            int x;
            cin>>x;
            for (int i=0;i<n;i++)b&=a[i]!=x;
        }
        cnt+=b;
    }
    cout<<cnt;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct