cf/mirror

Deque Process

CF
2128B1100· newbie1.5s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
7
1 2 3 4 5 6 7
9
1 3 6 8 9 7 5 4 2
12
1 2 11 3 6 4 7 8 12 5 10 9
6
4 1 2 5 6 3
5
1 2 3 5 4
9
5 1 8 6 2 7 9 4 3
Output
RRRLLLL
LLRRLLRRL
LLLLLLLLLLLL
LLLLLL
LLLLL
LLLLLLLLL
2128B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)