Time in Trains
CodeChefOpen on judge ↗
There are three cities __A__, __B__ and __C__. A one-way train takes _x_ hours to travel from __A__ to __B__. Another one-way train takes _y_ hours to travel from __B__ to __C__. Another one-way train takes _z_ hours to travel from __C__ to __A__. Chef will start from any one city and travel to the other 2 cities. Find the the minimum amount of time he will have to spend in hi
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