# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
541485 |
2022-03-23T16:48:09 Z |
AlperenT |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
340 KB |
#include <bits/stdc++.h>
using namespace std;
int n, a, m, ans;
set<int> st;
int main(){
ios_base::sync_with_stdio(false);cin.tie(NULL);
cin >> n;
for(int i = 1; i <= n; i++){
cin >> a;
st.insert(a);
}
cin >> m;
for(int i = 1; i <= m; i++){
cin >> n;
bool flag = true;
for(int j = 1; j <= n; j++){
cin >> a;
if(st.find(a) != st.end()) flag = false;
}
if(flag) ans += 1;
}
cout << ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
324 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
1 ms |
324 KB |
Output is correct |