# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
974681 |
2024-05-03T15:52:10 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
440 KB |
#include <bits/stdc++.h>
using namespace std;
int main() {
int z, n, m, k, res = 0;
cin >> n;
set<int> a;
for (int i=0; i<n; i++) {
cin >> z;
a.insert(z);
}
cin >> m;
for (int i=0; i<m; i++) {
cin >> k;
bool flag = 1;
for (int j=0; j<k; j++) {
cin >> z;
if (a.count(z)) flag = 0;
}
if (flag) res++;
}
cout << res << endl;
return 0;
}
# |
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 |
0 ms |
348 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 |
1 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 |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
440 KB |
Output is correct |