TRAIN JOURNEY
CodeChefOpen on judge ↗
There is a train service which runs in Wonderland. Each train carries people on a fixed route. As a part-time job, You are given the responsibility to manage $1$ of those trains. Your train has bogies to carry the passengers and each bogie can carry not more than **$k$** passengers. Initially, the train has $0$ bogies. The train runs on a fixed route and there are multiple stops on the route at
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