← All problemsSign in

The Car Trip of Sundar

It was a lovely evening in Morocco so Sundar decided to take his girlfriend out for a ride in his new car. They started from his house and decided to go to the outskirts of the city. The only problem was that his car was a sports car and so it had very low mileage. In order to overcome this he decides to refill his tank in the petrol bunks that are present along his route. He doesn't want to get e

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start