# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
975460 |
2024-05-05T08:29:54 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++ |
|
1 ms |
600 KB |
#include <bits/stdc++.h>
using namespace std;
int main(){
int N,M, K,B;
int ans = 0;
cin >> N;
int A[N];
for(int i=0; i<N; i++){
cin >> A[i];
}
cin>> M;
bool isTrue = true;
for(int i=0; i<M; i++){
isTrue = true;
cin >> K;
for(int j=0; j<K; j++){
cin >> B;
for(int k=0; k<N; k++){
if(B == A[k]){
isTrue = false;
break;
}
}
}
if(isTrue == true){
ans++;
}
}
cout << ans<< endl;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 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 |
344 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 |
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 |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |