# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
495217 |
2021-12-18T06:46:35 Z |
kappa |
Pizza (COCI21_pizza) |
C++14 |
|
1 ms |
300 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 |
208 KB |
Output is correct |
2 |
Correct |
0 ms |
208 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
296 KB |
Output is correct |
2 |
Correct |
1 ms |
208 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
300 KB |
Output is correct |
2 |
Correct |
1 ms |
300 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
208 KB |
Output is correct |
2 |
Correct |
1 ms |
208 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
208 KB |
Output is correct |
2 |
Correct |
0 ms |
208 KB |
Output is correct |