『算法-ACM竞赛-思维题-模拟』HDOJ 4699 Editor 对顶栈模拟
『算法-ACM 竞赛-思维题-模拟』HDOJ 4699 Editor 对顶栈模拟
Editor
Time Limit: 3000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
Total Submission(s): 2818 Accepted Submission(s): 825
Problem Description
Sample Input
8 I 2 I -1 I 1 Q 3 L D R Q 2
Sample Output
2 3
Hint
The following diagram shows the status of sequence after each instruction:
『算法-ACM竞赛-思维题-模拟』HDOJ 4699 Editor 对顶栈模拟
https://chiamzhang.github.io/2024/06/29/『算法-ACM竞赛-思维题-模拟』HDOJ 4699 Editor 对顶栈模拟/