The Wizard vs The Dragon
CodeChefOpen on judge ↗
A Wizard who ended up in an engineering college has mastered the power of thinking numbers and causing damage equal to their magnitude, to his enemies. This power has some repercussions. If the number is a multiple of 3, this power causes damage to the Wizard instead of his enemy or if the number is divisible by 6, its affect on the enemy is doubled. A fire-breathing, not-at-all-freaky, very-fri
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