Two Armies
CodeChefOpen on judge ↗
There are two Kingdoms, Kingdom $1$ and Kingdom $2$ who always battle among them. Kingdom $1$ has army of size $N$ and kingdom $2$ has army of size $M$. The war is going to last for $Q$ days. Each soldier in kingdom $1$ or kingdom $2$ has some initial positive integer value $Vi$, representing the Strength of soldier ( $1$ <= $i$ <= $N$ for soldier of Kingdom1 and $1$<= $i$ <=$M$ for soldier of
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