4 2 5 1 2
2 3 4 5 4 3 2 1 2 The initial sequence is $(2,5,1,2)$. The procedure goes as follows. * Insert $3,4$ between the first term $2$ and the second term $5$, making the sequence $(2,3,4,5,1,2)$. * Insert $4,3,2$ between the fourth term $5$ and the fifth term $1$, making the sequence $(2,3,4,5,4,3,2,1,2)$.
6 3 4 5 6 5 4
3 4 5 6 5 4 No insertions may be performed.
{
"problem": {
"name": "Fill the Gaps",
"description": {
"content": "We have a sequence of length $N$ consisting of positive integers: $A=(A_1,\\ldots,A_N)$. Any two adjacent terms have different values. Let us insert some numbers into this sequence by the following pro",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc301_b"
},
"statements": [
{
"statement_type": "Markdown",
"content": "We have a sequence of length $N$ consisting of positive integers: $A=(A_1,\\ldots,A_N)$. Any two adjacent terms have different values.\nLet us insert some numbers into this sequence by the following pro...",
"is_translate": false,
"language": "English"
}
]
}