cf/mirror

Strange Splitting

CF
1984A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
7
4
1 1 2 2
5
1 2 3 4 5
3
3 3 3
4
1 2 2 2
3
1 2 2
3
1 1 2
3
1 9 84
Output
YES
RBRR
YES
BBRBB
NO
YES
RBBR
YES
RRB
YES
BRR
YES
BRB
1984A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)