# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
976360 |
2024-05-06T13:28:32 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
348 KB |
#include <bits/stdc++.h>
typedef long long ll;
#define fi first
#define sc second
#define pb push_back
using namespace std;
void solve() {
int n; cin >> n;
vector<bool> suka(101, true);
for (int i = 0; i < n; i++) {
int x; cin >> x;
suka[x] = false;
}
int m, cnt = 0; cin >> m;
while (m--) {
bool temp = true;
int k; cin >> k;
for (int i = 0; i < k; i++) {
int x; cin >> x;
if (!suka[x]) {
temp = false;
}
}
if (temp) cnt++;
}
cout << cnt << endl;
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
solve();
}
# |
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 |
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 |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |