| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1257400 | tatas07 | Pizza (COCI21_pizza) | C++20 | 1 ms | 328 KiB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main()
{
int n;
cin >> n;
set<int> a;
for (int i = 0; i < n; i++)
{
int x;
cin >> x;
a.insert(x);
}
int q;
cin >> q;
int ans = 0;
while (q--)
{
int k;
cin >> k;
bool ok = true;
while (k--)
{
int x;
cin >> x;
if (a.count(x) == 1)
{
ok = false;
}
}
if (ok)
{
ans++;
}
}
cout << ans;
}| # | 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... | ||||
