Dominant Army
In the medieval age, there were $3$ kingdoms $A$, $B$, and $C$. The army of these kingdom had $N_A$, $N_B$, and $N_C$ soldiers respectively. You are given that an army with $X$ soldiers can defeat an army with $Y$ soldiers only if $X \gt Y$. An army is said to be **dominant** if it can defeat both the other armies **combined**. For example, kingdom $C$'s army will be dominant only if $N_C > N_
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