← All problemsSign in

Panda and Beauty Contest

Problem description. We have a beauty contest going on in panda village. Each contestant is given an id ranging from 0 to N-1 and a corresponding rating. The more your rating is, the more beautiful you are considered. Each person has a unique rating. After the contest, all the participants were required to stand side by side and walk on the red carpet together. The contestants who are standing

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