# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
974164 |
2024-05-03T02:46:35 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
600 KB |
#include <bits/stdc++.h>
using namespace std;
int N,M;
set<int>a;
int main(){
cin>>N;
for(int i=0;i<N;i++){
int x;
cin>>x;
a.insert(x);
}
int ans=0;
cin>>M;
while(M--){
int k;
cin>>k;
bool suka=true;
while(k--){
int b;
cin>>b;
if(a.count(b)) suka=false;
}
if(suka) ans++;
}
cout<<ans<<endl;
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 |
0 ms |
344 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 |
1 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
512 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
600 KB |
Output is correct |