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:

原文地址:https://www.cnblogs.com/lunatic-talent/p/12798824.html