King ACE wants to win Lovely kingdom
CodeChefOpen on judge ↗
There is a Kingdom named Lovely and King ACE wants to rule it. Currently, Lovely Kingdom is divided into many states. Each state is governed by the governor of the state. Each state has special force to protect it. King ACE decides to send 1 troop to every state. Each soldier of special force of each state has special weapon. Each weapon falls into some specific category. This special weapon is r
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