WIN THE BATTLE
CodeChefOpen on judge ↗
A game is being developed by DiciD Company."W" no of walls are constructed on which "N" soldiers are deployed such that to the leftmost it is of lower rank and then rank of soldier to right either increases or it is of same rank of the previous soldier and this pattern is followed upto middle.The middle soldier has highest rank and then to left of soldier the pattern of soldier is just like m
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