ro and journey
CodeChefOpen on judge ↗
Ro start for a journey from PES to his home. There are two different tracks from PES to his home. Each path has N toll taxes where he has to pay and in between he can change track from any toll but for he have to pay extra. By changing track from ith toll of first track one can reach (i+1)th toll of second track and vice versa. All you have to calculate is minimum cost required to reach from PES
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