5 3 1 4 1 5 6 3 2 2 3 4 3 3 1 1 2 3 4 3 3
1 8 5 Initially, $A=(3,1,4,1,5)$. The queries are processed as follows: * $A_2=1$, so print $1$. * Add $4$ to $A_3$, making $A=(3,1,8,1,5)$. * $A_3=8$, so print $8$. * Assign $1$ to every element of $A$, making $A=(1,1,1,1,1)$. * Add $4$ to $A_3$, making $A=(1,1,5,1,1)$. * $A_3=5$, so print $5$.
1 1000000000 8 2 1 1000000000 2 1 1000000000 2 1 1000000000 2 1 1000000000 2 1 1000000000 2 1 1000000000 2 1 1000000000 3 1
8000000000 Note that the elements of $A$ may not fit into a $32$\-bit integer type.
10 1 8 4 15 7 5 7 5 8 0 20 2 7 0 3 7 3 8 1 7 3 3 2 4 4 2 4 9 2 10 5 1 10 2 4 2 1 10 2 3 1 2 8 11 2 3 14 2 1 9 3 8 3 8 3 1 2 6 5 3 7
7 5 7 21 21 19 10
{
"problem": {
"name": "All Assign Point Add",
"description": {
"content": "You are given a sequence $A = (A_1, A_2, \\dots, A_N)$ of length $N$. Given $Q$ queries, process all of them in order. The $q$\\-th $(1\\leq q\\leq Q)$ query is in one of the following three formats, whic",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc278_d"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a sequence $A = (A_1, A_2, \\dots, A_N)$ of length $N$.\nGiven $Q$ queries, process all of them in order. The $q$\\-th $(1\\leq q\\leq Q)$ query is in one of the following three formats, whic...",
"is_translate": false,
"language": "English"
}
]
}