Editor

Time Limit: 2000ms
Memory Limit: 131072KB
This problem will be judged on HDU. Original ID: 4699
64-bit integer IO format: %I64d      Java class name: Main

Description

Sample Input

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

Sample Output

2
3

Source

Language: 
Theme: 
Share Code? 

Powered by NB231 | Current Style: .