# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
975847 |
2024-05-06T01:07:34 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
2 ms |
356 KB |
#include <bits/stdc++.h>
using namespace std;
#define futaba ios_base::sync_with_stdio(false); cin.tie(NULL);
#define rio return 0;
// Fun things are fun. //
int a[105];
bool ada[105];
int main() {
/* freopen(".txt", "r", stdin);
freopen(".txt", "w", stdout); */
futaba
int n;
cin >> n;
for(int i = 1; i <= n; i++) {
cin >> a[i];
ada[a[i]] = true;
}
int m;
cin >> m;
int ans = 0;
for(int i = 1; i <= m; i++) {
int k;
cin >> k;
bool flag = false;
for(int j = 1; j <= k; j++) {
int b;
cin >> b;
if(ada[b]) flag = true;
}
if(!flag) ans++;
}
cout << ans << '\n';
rio
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
356 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 |
0 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
2 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 |
348 KB |
Output is correct |