# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
976055 |
2024-05-06T06:34:30 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
348 KB |
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
int arr[n+5];
for(int i=0; i<n; i++){
cin >> arr[i];
}
int m;cin >> m;
int jawab=0;
while(m--){
int bisa=0;
int k;cin >> k;
int b[k+5];
memset(b,0,sizeof(b));
for(int i=0;i<k; i++){
cin >> b[i];
}for(int i=0; i<n; i++){
for(int j=0; j<k; j++){
if(arr[i] == b[j]){
bisa++;
}
}
}if(bisa == 0){
jawab++;
}
} cout <<jawab;
}
# |
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 |
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 |
1 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 |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |