cp/codeforces/996/d.in
2025-02-09 15:59:43 -05:00

16 lines
74 B
Text

5
3
-1 -1 -1
LLR
6
3 5 1 4 3 2
LRLLLR
2
2 8
LR
2
3 9
RL
5
1 2 3 4 5
LRLRR