Inaugural Dances
CodeChefOpen on judge ↗
*Felicity inaugurals are just around the corner and we don't even have teams formed for the dances! An urgent notice is sent out and everyone interested in dancing is asked to assemble for auditions at Amphi at 12 am.* $N$ dancers show up for the auditions and stand in a queue. The judge estimates the skill of each dancer to be equal to some non-negative integer value $a_i$. Now, the judge must a
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