# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
496457 |
2021-12-21T08:33:27 Z |
PLML |
Pizza (COCI21_pizza) |
C++14 |
|
1 ms |
276 KB |
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;cin >> n;
set<int> s;
for(int i = 0;i<n;i++){
int x;cin >> x;
s.insert(x);
}
int m;cin >> m;
int ans = 0;
for(int i = 0;i<m;i++){
int x;cin >> x;
bool frag = true;
for(int j = 0;j<x;j++){
int a;cin >> a;
if(s.count(a)) frag = false;
}
if(frag) ans++;
}
cout << ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
0 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
276 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
208 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
0 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Output is correct |
2 |
Correct |
0 ms |
204 KB |
Output is correct |