Apaji Swings
CodeChefOpen on judge ↗
PROBLEM STATEMENT We, at Banasthali, celebrate Apaji's birth anniversary every year at the end of November. The biggest highlight of the entire celebration is the fair, and its swings. Among those swings too, the most popular is the columbo ride (we all love it!). So, there are 'n' girls standing with a ticket in a queue, waiting for their chance to get a ride. Each ticket has a sequence number w
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