# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
975353 |
2024-05-05T02:25:59 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
440 KB |
#include <bits/stdc++.h>
using namespace std;
set<int> a;
int main() {
int n;cin >> n;
for(int i = 0; i < n; i++){
int x; cin >> x;
a.insert(x);
}
int jawab = 0;
int m; cin >> m;
while(m--){
int x; cin >> x;
bool suka = true;
while(x--){
int y;
cin >> y;
if(a.count(y)){
suka = false;
}
}
if(suka) jawab++;
}
cout << jawab << endl;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
440 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 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 |
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 |
0 ms |
432 KB |
Output is correct |
2 |
Correct |
0 ms |
344 KB |
Output is correct |