4 1 2 3 4 9
2 1
For example, assume that Aoki chooses Weed $4$, with height $9$, and pulls it. Then, the tallest remaining weed is Weed $3$, with height $4$. We have $\frac{4}{2}=2$, and Takahashi will pull Weed $2$ and $3$ in the first operation, since $2<3$ and $2<4$. Then, he will pull Weed $1$ in the second operation, completing his work in two operations. On the other hand, he will not complete his work in one operation, no matter which one weed Aoki chooses.
Also, if Aoki pulls no weed, Takahashi will have to do three operations, so Aoki must pull at least one weed to minimize the number of operations done by Takahashi.3 3 2 3 5
0 3 If Aoki pulls all weeds, Takahashi has to do zero operations, which is obviously the smallest number possible.
9 8 137 55 56 60 27 28 133 56 55
1 4
{
"problem": {
"name": "Weed",
"description": {
"content": "Takahashi's and Aoki's garden is covered with $N$ weeds, called Weed $1$, Weed $2$, $\\ldots$, Weed $N$. The height of Weed $i$ is $A_i$. Takahashi and Aoki have decided to pull these weeds, as follows",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc203_f"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Takahashi's and Aoki's garden is covered with $N$ weeds, called Weed $1$, Weed $2$, $\\ldots$, Weed $N$. The height of Weed $i$ is $A_i$. Takahashi and Aoki have decided to pull these weeds, as follows...",
"is_translate": false,
"language": "English"
}
]
}