Melisandre and Spell Attack
CodeChefOpen on judge ↗
King Stannis Baratheon was recently informed about an upcoming attack on his kingdom. In panic, he had to ask his close advisor, Melisandre of Asshai to help him defend his kingdom. Originally from Asshai, Melisandre has prophetic powers that give her partial knowledge of future events. With this, she planned a attack strategy that is sure to work if implemented properly in the battlefield. She'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