# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1191656 | SmuggingSpun | Pizza (COCI21_pizza) | C++20 | 0 ms | 328 KiB |
#include<bits/stdc++.h>
#define taskname "A"
using namespace std;
const int lim = 105;
bitset<lim>hate;
int main(){
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
if(fopen(taskname".inp", "r")){
freopen(taskname".inp", "r", stdin);
}
int n, m;
cin >> n;
hate.reset();
for(int _ = 0; _ < n; _++){
int x;
cin >> x;
hate.set(x);
}
cin >> m;
int ans = 0;
for(int _ = 0; _ < m; _++){
bool flag = true;
int k;
cin >> k;
for(int i = 0; i < k; i++){
int x;
cin >> x;
if(hate.test(x)){
flag = false;
}
}
if(flag){
ans++;
}
}
cout << ans;
}
Compilation message (stderr)
# | 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... |