# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
872972 |
2023-11-14T08:04:50 Z |
aeg |
Pizza (COCI21_pizza) |
C++14 |
|
1 ms |
348 KB |
#include <bits/stdc++.h>
using namespace std;
#define I insert
#define PB push_back
int main() {
int n;
cin >> n;
set<int> a;
for(int i=0; i<n; i++) {
int tmp;
cin >> tmp;
a.I(tmp);
}
int m;
cin>>m;
int ans = 0;
for(int i=0; i<m; i++) {
int k;
bool flag = true;
cin >> k;
for(int j=0; j<k; j++) {
int tmp;
cin >> tmp;
if(flag && a.count(tmp)) flag = false;
}
if(flag) ans++;
}
cout<<ans<<endl;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
344 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 |
348 KB |
Output is correct |
2 |
Correct |
1 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 |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |