# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
891708 |
2023-12-23T17:10:05 Z |
ind1v |
Pizza (COCI21_pizza) |
C++11 |
|
1 ms |
348 KB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define sz(x) (int)((x).size())
#define all(x) (x).begin(), (x).end()
int32_t main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n; cin >> n;
int a[n];
set<int> s;
for (int i = 0; i < n; ++i) {
cin >> a[i];
s.insert(a[i]);
}
int m; cin >> m;
int z = 0;
while (m--) {
int k; cin >> k;
int b[k];
bool f = true;
for (int i = 0; i < k; ++i) {
cin >> b[i];
f &= (!s.count(b[i]));
}
z += f;
}
cout << z;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 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 |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 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 |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |