Troy
CodeChefOpen on judge ↗
Problem discription General Brad and Commander Iris are heading to Troy to stop a rebellion. They discuss battle strategy on the way. Tired of just planning they decide to play a game. They have a map that shows all the locations that their soldiers can occupy. They know which location is connected to which other one and paths between locations are all one-way. Therefore they have to place some s
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