Submission #975903

# Submission time Handle Problem Language Result Execution time Memory
975903 2024-05-06T02:49:00 Z vjudge1 Pizza (COCI21_pizza) C++17
50 / 50
2 ms 600 KB
#include <bits/stdc++.h>
#define int long long
#define ld long double
using namespace std;

signed main(){
    int n; cin>>n;
    int anti[n+5];
    for (int i=0;i<n;i++){
        cin>>anti[i];
    }
    int k; cin>>k;
    int ans=0;
    for (int i=0;i<k;i++){
        int m; cin>>m;
        int bingkisan[k+5][m+5];
        bool akbar=true;
        for(int j=0;j<m;j++){
            cin>>bingkisan[i][j];
            for(int qq=0;qq<n;qq++){
                if(bingkisan[i][j]==anti[qq]){
                    akbar = false;
                }
            }
        }
        if(akbar==true){
            ans++;
        }
    }
    cout<<ans<<endl;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 1 ms 600 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 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 2 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 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 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct