5 4 2 4 3 5 1 4 2 5
2 2 0 1 0 In the sample output, $x$ changes as follows: * Initially, $x = (0,0,0,0,0)$. * In the 1st operation, Operation $2$ is performed. $x_1$ and $x_5$ become 1, so $x = (1,0,0,0,1)$. * In the 2nd operation, Operation $0$ is performed. $x$ remains $(1,0,0,0,1)$. * In the 3rd operation, Operation $1$ is performed. $x_1, x_2, x_3, x_4$ become 1, so $x = (1,1,1,1,1)$. * In the 4th operation, Operation $0$ is performed. $x$ remains $(1,1,1,1,1)$.
5 4 1 3 1 5 2 4 3 5
1 0 1 0 0
5 2 1 3 2 5
2 1 1
5 2 1 3 2 4
\-1
{
"problem": {
"name": "Inside or Outside",
"description": {
"content": "There is an integer sequence $x = (x_1, \\ldots, x_N)$, which is initialized with $x_1 = \\cdots = x_N = 0$. You will perform $M$ operations on this integer sequence. In the $i$\\-th operation, you are g",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc190_a"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There is an integer sequence $x = (x_1, \\ldots, x_N)$, which is initialized with $x_1 = \\cdots = x_N = 0$.\nYou will perform $M$ operations on this integer sequence. In the $i$\\-th operation, you are g...",
"is_translate": false,
"language": "English"
}
]
}