6 2 7 1 8 2 8 15 3 1 3 3 3 4 1 1 5 4 3 1 3 3 3 4 1 3 6 9 3 1 3 3 3 4 2 4 3 1 3 3 3 4
2 1 8 4 4 8 4 9 9 2 9 9 Initially, the sequence $A$ is $(2,7,1,8,2,8)$. For the $1$\-st, $2$\-nd, $3$\-rd operations, print the values of $A_1, A_3, A_4$, which are $2,1,8$, respectively. The $4$\-th operation replaces the values of $A_1, A_2, A_3, A_4, A_5$ with $\max\lbrace A_i,4\rbrace$. Just after this operation, $A$ is $(4,7,4,8,4,8)$. For the $5$\-th, $6$\-th, $7$\-th operations, print the values of $A_1, A_3, A_4$ at this point, which are $4,4,8$, respectively. The $8$\-th operation replaces the values of $A_3, A_4, A_5, A_6$ with $\max\lbrace A_i,9\rbrace$. Just after this operation, $A$ is $(4,7,9,9,9,9)$. For the $9$\-th, $10$\-th, $11$\-th operations, print the values of $A_1, A_3, A_4$ at this point, which are $4,9,9$, respectively. The $12$\-th operation cancels the $4$\-th operation. Just after this operation, $A$ is $(2,7,9,9,9,9)$. For the $13$\-th, $14$\-th, $15$\-th operations, print the values of $A_1, A_3, A_4$ at this point, which are $2,9,9$, respectively.
24 721 78 541 256 970 478 370 467 344 542 43 166 619 17 592 222 983 729 338 747 62 452 815 838 35 3 10 3 8 3 8 3 13 3 9 1 1 17 251 3 3 3 19 3 13 3 22 3 1 3 15 3 18 3 10 3 15 1 16 19 883 1 8 23 212 3 5 3 13 2 6 3 15 1 5 18 914 2 17 3 20 1 23 23 56 3 13 2 25 3 13 3 13 3 10 2 16 1 17 22 308 3 19 3 17 3 7
542 467 467 619 344 541 338 619 452 721 592 729 542 592 970 619 592 747 914 914 914 914 338 983 914
{
"problem": {
"name": "Retroactive Range Chmax",
"description": {
"content": "You are given an integer sequence $A=(A_1,A_2,\\ldots,A_N)$ of length $N$. Process $Q$ operations in order. There are three types of operations: * A type-1 operation is represented by a triple of in",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 5000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc342_g"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given an integer sequence $A=(A_1,A_2,\\ldots,A_N)$ of length $N$.\nProcess $Q$ operations in order. There are three types of operations:\n\n* A type-1 operation is represented by a triple of in...",
"is_translate": false,
"language": "English"
}
]
}