# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
975547 | vjudge1 | Pizza (COCI21_pizza) | C++17 | 1 ms | 600 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define faster ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
signed main(){
int m, tempe;
cin >> m;
set <int> nuhuh;
while (m--){
cin >> tempe;
nuhuh.insert(tempe);
}
int n,tmp,x,sum = 0;
cin >> n;
while (n--){
bool cek = true;
cin >> x;
while(x--){
cin >> tmp;
if(cek){
if(nuhuh.find(tmp)!=nuhuh.end())cek = false;
}
}
if(cek) sum++;
}
cout << sum;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |