# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
976316 |
2024-05-06T12:22:12 Z |
vjudge1 |
Pizza (COCI21_pizza) |
C++17 |
|
1 ms |
348 KB |
#include<bits/stdc++.h>
using namespace std;
signed main () {
int n; cin >> n;
bool buy[105];
memset(buy, 1, sizeof buy);
for(int i=1;i<=n;i++) {
int x; cin>>x;
buy[x]=0;
}
int m;cin>>m;
int ans=m;
for(int i=1;i<=m;i++) {
int k; cin>>k;
bool done=1;
for(int j=1;j<=k;j++) {
int a; cin>>a;
if(!buy[a]&&done) {
ans--;
done=0;
}
}
}
cout<<ans;
}
# |
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 |
348 KB |
Output is correct |
2 |
Correct |
1 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 |
1 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 |