3 3 8 1
3 14 5
13 2 10
6 902 909 186 684 219 471 248
1023 249 64 0 264 768 778 794
2025
1026
For the first test case, the sample output is $P = (3, 14, 5), A = (13, 2, 10)$.
* One longest strictly increasing subsequence of $(3~\mathrm{OR}~13, 14~\mathrm{OR}~13, 5~\mathrm{OR}~13) = (15, 15, 13)$ is $(13)$, whose length is $1$.
* One longest strictly increasing subsequence of $(3~\mathrm{OR}~2, 14~\mathrm{OR}~2, 5~\mathrm{OR}~2) = (3, 14, 7)$ is $(3, 7)$, whose length is $2$.
* One longest strictly increasing subsequence of $(3~\mathrm{OR}~10, 14~\mathrm{OR}~10, 5~\mathrm{OR}~10) = (11, 14, 15)$ is $(11, 14, 15)$, whose length is $3$.
From the above, it can be confirmed that $P = (3, 14, 5), A = (13, 2, 10)$ satisfies the conditions.{
"problem": {
"name": "PORALIS",
"description": {
"content": "You are given a positive integer $N$. Output one pair of non-negative integer sequences $P=(P_1, P_2, \\dots,P_N), A=(A_1, A_2, \\dots,A_N)$ that satisfies all of the following conditions: * $0 \\le",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "agc074_c"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a positive integer $N$. \nOutput one pair of non-negative integer sequences $P=(P_1, P_2, \\dots,P_N), A=(A_1, A_2, \\dots,A_N)$ that satisfies all of the following conditions:\n\n* $0 \\le...",
"is_translate": false,
"language": "English"
}
]
}