cf/mirror

LR-remainders

CF
1932C1400· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
4 6
3 1 4 2
LRRL
5 1
1 1 1 1 1
LLLLL
6 8
1 2 3 4 5 6
RLLLRR
1 10000
10000
R
Output
0 2 4 1
0 0 0 0 0
0 0 0 4 4 4
0
1932C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)