# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
977205 |
2024-05-07T13:51:15 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
756 KB |
#include<bits/stdc++.h>
using namespace std;
int n,m;
bool ada[101]={0};
int main(){
cin>>n;
for(int i=0;i<n;i++){
int a;
cin>>a;
ada[a]=1;
}
cin>>m;
int ans=0;
while(m--){
int k; cin>>k;
bool tambah={0};
for(int i=0;i<k;i++){
int b;
cin>>b;
if(ada[b])tambah=true;
} if(!tambah)ans++;
} cout<<ans<<endl;
}
# |
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 |
432 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 |
1 ms |
756 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
440 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 |