King test to his sons
CodeChefOpen on judge ↗
The King of France has turned old. He would like one of his three sons to take up his place as the next King. But he doesn’t want them to fight over the throne after his death. Over so many years in the past, his sons have been fighting with each other over trifles. But he feels that deep inside their hearts, the three brothers love each other. The King believes that he can bring back the love
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