# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
975652 |
2024-05-05T16:06:49 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
2 ms |
420 KB |
#include <bits/stdc++.h>
using namespace std;
int main(){
int daftar; cin >> daftar;
bool gasuka[105];
memset(gasuka, 0, sizeof(gasuka));\
for(int i = 0; i < daftar; i++){
int x; cin >> x;
gasuka[x] = 1;
}
int hasil = 0;
int n_bingkisan; cin >> n_bingkisan;
for(int i = 0; i < n_bingkisan; i++){
int isi; cin >> isi;
int beli = 1;
for(int j = 0; j < isi; j++){
int x; cin >> x;
if(gasuka[x]) beli = 0;
}
hasil += beli;
}
cout << hasil << endl;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
420 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 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 |
1 ms |
348 KB |
Output is correct |