# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
496375 |
2021-12-21T06:36:06 Z |
kappa |
Pizza (COCI21_pizza) |
C++14 |
|
1 ms |
288 KB |
#include <bits/stdc++.h>
using namespace std;
int n, m, ans, dis[105];
int check(int a){
for (int i = 0; i < n; i++)
{
if(a == dis[i]){
return 1;
}
}
return 0;
}
int main(){
cin >> n;
for (int i = 0; i < n; i++)
{
cin >> dis[i];
}
cin >> m;
while(m--){
int top, say = 0;
cin >> top;
for (int i = 0; i < top; i++)
{
int temp;
cin >> temp;
if(check(temp)){
say = 1;
}
}
if(say == 0){
ans++;
}
}
cout << ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
0 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
0 ms |
288 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
272 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
272 KB |
Output is correct |
2 |
Correct |
0 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |