Bus Station
Ryan is the president of a planet. There is a large bus station on this planet and $M$ buses stop at this station every day. For each valid $i$, the $i$-th bus arrives at the station $t_i$ seconds after midnight (on Ryan's planet, each day lasts $10^{100}$ hours, not $24$ hours), waits at the station for some non-negative (not necessarily integer) amount of time and then leaves. Ryan knows that
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start