cf/mirror

Right Left Wrong

CF
2000D1200· pupil2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
6
3 5 1 4 3 2
LRLLLR
2
2 8
LR
2
3 9
RL
5
1 2 3 4 5
LRLRR
Output
18
10
0
22
2000D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)