# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
975546 |
2024-05-05T13:08:31 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
456 KB |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
bool bad[105] = {};
int main() {
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int N, X, M, K, ans = 0;
cin >> N;
for (int i = 1; i <= N; i++) {
cin >> X;
bad[X] = 1;
}
cin >> M;
for (int i = 1; i <= M; i++) {
cin >> K;
bool works = 1;
for (int i = 1; i <= K; i++) {
cin >> X;
works &= (!bad[X]);
}
ans += works;
}
cout << ans << '\n';
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
456 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 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 |
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 |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
456 KB |
Output is correct |