Strongest Weapon
CodeChefOpen on judge ↗
This is a fight between weapons. There are 3 type of weapons - Dragonglass, Valyrian Steel and Wild Fire. Now, the result of a fight between any 2 weapons is known to be as below: - Dragonglass defeats Valyrian Steel - Valyrian Steel defeats Wild Fire - Wild Fire defeats Dragonglass Here, note that match between 2 weapons of same type results in draw. Now, there are $D$ number of dragonglasses,
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