# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
976239 |
2024-05-06T10:46:06 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
348 KB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
void solve() {
int n;cin>>n;
vector<int> flag(101);
for (int i = 0; i < n; i++) {
int tmp;cin>>tmp;
flag[tmp] = 1;
}
int q;cin>>q;
int ans = 0;
while (q--) {
int m;cin>>m;
bool ok = 1;
for (int j = 0; j < m; j++) {
int tmp;cin>>tmp;
if (flag[tmp]) ok = 0;
}
ans += ok;
}
cout << ans << endl;
}
int32_t main() {
ios_base::sync_with_stdio(0);cin.tie(NULL);
int t = 1;
while (t--) solve();
return 0;
}
# |
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 |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
344 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 |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |