7 3 2 0 2 3 2 1 9
3 In this input, $A=(2,0,2,3,2,1,9)$, and you obtain the sequence $B$ by picking $K=3$ elements. For example, * If the $1$\-st, $2$\-nd, and $3$\-rd elements are chosen, $MEX(B)=MEX(2,0,2)=1$. * If the $3$\-rd, $4$\-th, and $6$\-th elements are chosen, $MEX(B)=MEX(2,3,1)=0$. * If the $2$\-nd, $6$\-th, and $7$\-th elements are chosen, $MEX(B)=MEX(0,1,9)=2$. * If the $2$\-nd, $3$\-rd, and $6$\-th elements are chosen, $MEX(B)=MEX(0,2,1)=3$. The maximum possible $MEX$ is $3$.
{
"problem": {
"name": "Max MEX",
"description": {
"content": "You are given a length-$N$ sequence of non-negative integers. When $B$ is a sequence obtained by choosing $K$ elements from $A$ and concatenating them without changing the order, find the maximum po",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc290_c"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a length-$N$ sequence of non-negative integers. \nWhen $B$ is a sequence obtained by choosing $K$ elements from $A$ and concatenating them without changing the order, find the maximum po...",
"is_translate": false,
"language": "English"
}
]
}