Dracarys
CodeChefOpen on judge ↗
Daenerys Targaryen is angry on Cersei Lannister after the execution of Missandei hence wants to destroy her kingdom with her Dragon. Daenerys said $Dracarys$ and started showing path to her Dragon having characters "L","R","U","D" . Here L = Left , R=Right , U=Up , D=Down move. Dragon will start from (0,0) position and will follow the path given in string and end up at position (x,y). As she wants
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