Chiku and Tickets
CodeChefOpen on judge ↗
Chiku is a bus conductor.He has to make sure that all the passengers buy tickets.There are N passengers in the bus. Passengers don't carry change always and can't pay the exact amount of the fare.Each passenger in the bus today has paid an amount greater than his/her fare. You are given information about the extra amount paid by each passenger,by an array A of size N, where A[i] denotes the extra
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