1 100 30
2100.000000000000000  The maximum distance is achieved when a train runs as follows: * In the first $30$ seconds, it accelerates at a rate of $1m/s^2$, covering $450$ meters. * In the subsequent $40$ seconds, it maintains the velocity of $30m/s$, covering $1200$ meters. * In the last $30$ seconds, it decelerates at the acceleration of $-1m/s^2$, covering $450$ meters. The total distance covered is $450$ + $1200$ + $450$ = $2100$ meters.
2 60 50 34 38
2632.000000000000000  The maximum distance is achieved when a train runs as follows: * In the first $34$ seconds, it accelerates at a rate of $1m/s^2$, covering $578$ meters. * In the subsequent $26$ seconds, it maintains the velocity of $34m/s$, covering $884$ meters. * In the subsequent $4$ seconds, it accelerates at a rate of $1m/s^2$, covering $144$ meters. * In the subsequent $8$ seconds, it maintains the velocity of $38m/s$, covering $304$ meters. * In the last $38$ seconds, it decelerates at the acceleration of $-1m/s^2$, covering $722$ meters. The total distance covered is $578$ + $884$ + $144$ + $304$ + $722$ = $2632$ meters.
3 12 14 2 6 2 7
76.000000000000000  The maximum distance is achieved when a train runs as follows: * In the first $6$ seconds, it accelerates at a rate of $1m/s^2$, covering $18$ meters. * In the subsequent $2$ seconds, it maintains the velocity of $6m/s$, covering $12$ meters. * In the subsequent $4$ seconds, it decelerates at the acceleration of $-1m/s^2$, covering $16$ meters. * In the subsequent $14$ seconds, it maintains the velocity of $2m/s$, covering $28$ meters. * In the last $2$ seconds, it decelerates at the acceleration of $-1m/s^2$, covering $2$ meters. The total distance covered is $18$ + $12$ + $16$ + $28$ + $2$ = $76$ meters.
1 9 10
20.250000000000000000  The maximum distance is achieved when a train runs as follows: * In the first $4.5$ seconds, it accelerates at a rate of $1m/s^2$, covering $10.125$ meters. * In the last $4.5$ seconds, it decelerates at the acceleration of $-1m/s^2$, covering $10.125$ meters. The total distance covered is $10.125$ + $10.125$ = $20.25$ meters.
10 64 55 27 35 76 119 7 18 49 100 29 19 31 39 27 48 41 87 55 70
20291.000000000000
{
"problem": {
"name": "AtCoder Express",
"description": {
"content": "In the year 2168, AtCoder Inc., which is much larger than now, is starting a limited express train service called _AtCoder Express_. In the plan developed by the president Takahashi, the trains will r",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc076_d"
},
"statements": [
{
"statement_type": "Markdown",
"content": "In the year 2168, AtCoder Inc., which is much larger than now, is starting a limited express train service called _AtCoder Express_.\nIn the plan developed by the president Takahashi, the trains will r...",
"is_translate": false,
"language": "English"
}
]
}