#P4699. Editor

Editor

Problem Description

8 I 2 I -1 I 1 Q 3 L D R Q 2
2 3

Hint


The following diagram shows the status of sequence after each instruction: