# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
974668 |
2024-05-03T15:30:38 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++14 |
|
1 ms |
348 KB |
#include<bits/stdc++.h>
using namespace std;
int n, m;
bitset<1000> a;
vector<vector<int>> b;
int main(){
cin >> n;
a.reset();
for (int i = 0; i < n; i++){
int tmp;
cin >> tmp;
a.set(tmp);
}
int ans = 0;
cin >> m;
for (int i = 0; i < m; i++){
int num, tmp;
bool yes = true;
cin >> num;
for (int j = 0; j < num; j++){
cin >> tmp;
if(a[tmp]) yes = false;
}
if(yes)ans++;
}
cout << ans << "\n";
}
# |
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 |
0 ms |
344 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 |
1 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 |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |