1 1 4 1 7
1 4 3 2 3 4 1 Initially, $A = (1, 1)$. The replacements of $A$ with $f(A)$ take place as follows. * After the first replacement: $A = (1, 2, 1)$. * After the second replacement: $A = (1, 3, 2, 3, 1)$. * After the third replacement: $A = (1, 4, 3, 5, 2, 5, 3, 4, 1)$. * After the fourth replacement: $A = (1, 5, 4, 7, 3, 8, 5, 7, 2, 7, 5, 8, 3, 7, 4, 5, 1)$. Thus, we have $B = (1, 4, 3, 2, 3, 4, 1)$. We should report the $1$\-st through $7$\-th elements of this sequence.
1 1 4 2 5
4 3 2 3 Again, we have $B = (1, 4, 3, 2, 3, 4, 1)$. We should report the $2$\-nd through $5$\-th elements of this sequence.
2 1 10 5 15
8 3 10 7 4 9 5 6 7 8 9
10 10 10 2 2
10
{
"problem": {
"name": "Insert Addition",
"description": {
"content": "For a sequence of integers $P = (P_1, \\ldots, P_M)$, let $f(P)$ denote the sequence obtained by inserting $P_i + P_{i+1}$ between $P_i$ and $P_{i+1}$ for each $1\\leq i\\leq M-1$. More formally: * Le",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 4000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc123_f"
},
"statements": [
{
"statement_type": "Markdown",
"content": "For a sequence of integers $P = (P_1, \\ldots, P_M)$, let $f(P)$ denote the sequence obtained by inserting $P_i + P_{i+1}$ between $P_i$ and $P_{i+1}$ for each $1\\leq i\\leq M-1$. More formally:\n\n* Le...",
"is_translate": false,
"language": "English"
}
]
}