Ordering Soldiers
CodeChefOpen on judge ↗
Napolean has three troops of fierce soldiers. The recent attack on his kingdom requires all the three troops to be used at the battlefield. In the battle, soldiers go off for fighting one at a time. Each soldier is to be used exactly once. However inside each troop the relative order in which they go for fight any battle is defined by some precedence relationship among them.King Napolean for testi
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