← All problemsSign in

Cab Rides

CodeChefRating 945Open on judge ↗

Chef and his family is trying to reach the airport. Including Chef, they are a total of $N$ members. A single cab ride costs $\max(200, 100 \cdot X)$ rupees to transport $X$ people from Chef's home to the airport. Further, a cab can fit **at most 4 people**. Chef may have to book multiple cabs in order for his entire family to reach the airport. What is the minimum cost for Chef's family to reac

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