# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
971896 |
2024-04-29T12:53:42 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
440 KB |
#include <bits/stdc++.h>
using namespace std;
int N,A[105],M,K,B,total;
int main(){
cin>>N;
for(int i=1;i<=N;i++){
cin>>A[i];
}
cin>>M;
for(int i=1;i<=M;i++){//For each case
bool yes = true;
cin>>K;
for(int i=1;i<=K;i++){
cin>>B;
for(int i=1;i<=N;i++){
if(B==A[i]){
yes = false;
break;
}
}
}
if(yes){
total++;
}
}
cout<<total;
}
# |
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 |
348 KB |
Output is correct |
2 |
Correct |
1 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 |
440 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
344 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 |