4 1 2 3 3
4 The process goes as follows: * After the 1st operation, $A$ is $(2, 2, 2, 1)$. * After the 2nd operation, $A$ is $(1, 1, 2, 1)$. * After the 3rd operation, $A$ is $(1, 0, 1, 1)$. * After the 4th operation, $A$ is $(0, 0, 1, 0)$. $A$ no longer contains more than one positive elements, so the process ends here.
3 1 1 100
2
{
"problem": {
"name": "Decrease 2 max elements",
"description": {
"content": "You are given a sequence of $N$ positive integers $A = (A_1, A_2, \\dots ,A_N)$. Takahashi repeats the following operation until $A$ contains one or fewer positive elements: * Sort $A$ in descending",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc368_b"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a sequence of $N$ positive integers $A = (A_1, A_2, \\dots ,A_N)$. Takahashi repeats the following operation until $A$ contains one or fewer positive elements:\n\n* Sort $A$ in descending...",
"is_translate": false,
"language": "English"
}
]
}