The New Minister
CodeChefOpen on judge ↗
The king of 'EGDE Palace' wants to appoint new minister. This time, He decided to follow a different selection process rather than conventional voting method. There are N interested candidates for the post. He assigned a unique Id to every ministerial candidate. There is a box which contains all Unique Ids. The king draws one id from the box without seeing into the box, notes down the id, and put
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