Securing Florence
CodeChefOpen on judge ↗
The King of Florence is captured by traitors. The treasures of Florence need immediate protection. Before his surrender the King had entrusted Da Vinci with the task to hide the treasures safely. The army of Florence also came forward to help Da Vinci in this task. They have informed Da Vinci that the whole army of Florence is divided into N troops, each troop guarding a patch of land within the
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