3 2 0 1 2
1.00000000000000000000 * Choosing the 1st and 2nd slimes results in $t=0.5$. * Choosing the 1st and 3rd slimes results in $t=1$. * Choosing the 2nd and 3rd slimes results in $t=0.5$. Thus, the answer is $1$.
4 3 0 1 4 9
2.83333333333333333333 If you choose the 1st, 2nd, and 4th slimes, the slimes move as follows: * For convenience, call the 1st, 2nd, and 4th slimes $X$, $Y$, and $Z$, respectively. * At time $0$: $X$, $Y$, and $Z$ start moving with velocity $+2$, $0$, and $-2$, respectively. * At time $1/2$: $X$ and $Y$ merge at coordinate $1$. The merged slime, called $XY$, starts moving with velocity $1$. On the other hand, $Z$ is at coordinate $8$ and continues moving with velocity $-2$. * At time $17/6$: $XY$ and $Z$ merge at coordinate $10/3$. Thus, $t=17/6$. It is impossible to make $t$ larger than $17/6$, so this is the answer.
4 4 0 1 2 3
0.50000000000000000000
20 6 0 3441380 120768398 229897071 231209282 232046760 254924545 325399248 385631087 400098966 480503302 501372095 502644652 524585010 541761042 691400171 725009462 767549897 837806226 927396743
135453315.33333333333333333333
{
"problem": {
"name": "Moving Slimes",
"description": {
"content": "There are $N$ slimes on a number line, and the $i$\\-th slime is at coordinate $A_i$. All these coordinates are distinct. Each slime has a weight of $1$. Also, you are given an integer $K$. First, you ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "awtf2024_a"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There are $N$ slimes on a number line, and the $i$\\-th slime is at coordinate $A_i$. All these coordinates are distinct. Each slime has a weight of $1$. Also, you are given an integer $K$.\nFirst, you ...",
"is_translate": false,
"language": "English"
}
]
}