3 1 2 2 1 2
3 We have $m=2$. After two operations, $A$ will be one of the following three sequences. * $A=(1,0,0)$: we end up with this after operations with $(i,j)=(2,3)$ and $(i,j)=(2,3)$. * $A=(0,1,0)$: we end up with this after operations with $(i,j)=(1,3)$ and $(i,j)=(2,3)$. * $A=(0,0,1)$: we end up with this after operations with $(i,j)=(1,2)$ and $(i,j)=(2,3)$.
4 1 1 1 1 2 2 2
1 Note that we do not distinguish two scenarios with different contents of $B$ if the contents of $A$ are the same.
4 2 2 3 4 3 1 4
3
{
"problem": {
"name": "Decrement",
"description": {
"content": "Given is a sequence $A$ of $N$ positive integers and a sequence $B$ of $N-1$ positive integers. You can do the following operation any number of times. * Choose integers $i$ and $j$ ($1 \\leq i < j ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "agc054_f"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Given is a sequence $A$ of $N$ positive integers and a sequence $B$ of $N-1$ positive integers. You can do the following operation any number of times.\n\n* Choose integers $i$ and $j$ ($1 \\leq i < j ...",
"is_translate": false,
"language": "English"
}
]
}