Dracarys
CodeChefOpen on judge ↗
Daenerys Targaryen is riding Viserion(the dragon). Initially, the dragon is at position $0$ on the X-axis. There are $N$ towns containing white walkers at positive integer points on the X-axis(positive X-axis). The dragon can jump from one point to another on the positive X-axis. However, the length of a jump can at max be $K$. In a single jump, the dragon burns down all the towns over which it fl
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