#SFJSJJZN0X01D02. 编辑器(Editor)

编辑器(Editor)

题目描述

image

样例

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:

image

简单翻译

image