cf/mirror

Double Permutation Inc.

CF
1211E2000· candidate master5s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
5
1 2 3 2 1
Output
RBBBG
Sample 2of 4
Input
3
1 1 1
Output
BBB
Sample 3of 4
Input
10
3 3 2 2 5 4 1 5 4 1
Output
RGRGRRRGGG
Sample 4of 4
Input
10
3 9 3 1 2 1 2 4 4 4
Output
RBGRRGGBBB
1211E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)