← All problemsSign in

The Whim of Mr Doraemon

Not long after their country lifted the World Cup, the people of Nobitaville decided to organize a Victory Marathon for celebrations. While other preparations were in order, Mr.Doraemon, who happened to be a very moody person, made it clear by announcing that he would let the Marathon take place only if Jerseys were distributed among people in some sort of order. He added that the richest person s

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