# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
974166 |
2024-05-03T03:04:32 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
600 KB |
#include <bits/stdc++.h>
using namespace std;
int N,M;
bool a[105];
int main(){
cin>>N;
memset(a,false,sizeof(a));
for(int i=0;i<N;i++){
int x;
cin>>x;
a[x]=true;
}
int ans=0;
cin>>M;
while(M--){
int k;
cin>>k;
bool suka=true;
while(k--){
int b;
cin>>b;
if(a[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 |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
600 KB |
Output is correct |
2 |
Correct |
1 ms |
348 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 |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |