Valyrian Luck
CodeChefOpen on judge ↗
The fight against the Night Army has begun in Westeros and the army of the unsullied is getting geared up for the battle. The army commander (Grey Worm) has to pick one or more types of swords among N different types of swords for his army. All the swords (of different types) are numbered from 1 to N. Mysteriously, one among the N swords is made up of Valyrian steel (particularly of type K). Unfor
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