The problem is pretty straightforward, we can calculate the empty space for each passenger by d = ( W - G ) / 2 and need to handle the precision result by choosing the correct data type for the length of space.

Statistics

90% Solution Ratio
Uosmoy383Earliest, Nov '21
code_firesFastest, 0.0s
Uosmoy383Lightest, 131 kB
ShuddhoShortest, 69B
Toph uses cookies. By continuing you agree to our Cookie Policy.