TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

2
9
pushfront m
pushfront t
pushback t
undo 2
undo 1
pushback 5
pushback 1
pushback 4
undo 5
3
pushfront 1
pushfront 5
pushback 4

Sample Output 1

m
tm
tmt
m
tmt
tmt5
tmt51
tmt514
tmt
1
51
514

Hints

Problem Source

NPSC 2012 高中組初賽 pB

Subtasks

No. Testdata Range Constraints Score
1 0 範例測資 0
2 0~1 無額外限制 100

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 5000 1048576 1048576 1 2
1 5000 1048576 1048576 2