← All problemsSign in

21FA - 05 Pompous Peacocks

Percy the Peacock is going to a festival this spring. He knows there will be a beautiful peacock, Pearl, who will be attending. Pearl has always attracted many other peacocks to the festival, all who want to show off their feathers to Pearl.   Percy is a businessman, and knows this is a great opportunity to run a betting pool on which of these $N$ peacocks will win Pearl’s heart. He has been do

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