# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
974998 |
2024-05-04T09:27:45 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
596 KB |
#include <bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL);
#define ll long long
#define rep(i, n) for(int i = 0 ; i < n ; i++)
#define all(a) a.begin(), a.end()
int main() {
fast
int n, ans = 0; cin>>n;
set<int> s;
rep(i, n) {
int x; cin>>x;
s.insert(x);
}
int m; cin>>m;
rep(i, m){
int k; cin>>k;
bool take = true;
rep(j, k){
int x; cin>>x;
if(s.count(x)) take = false;
}
if(take) ans++;
}
cout<<ans;
return 0;
}
# |
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 |
452 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
460 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 |
596 KB |
Output is correct |