Double Permutation Inc.
1211E2000· candidate master5s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
51 2 3 2 1
Output
RBBBG
Sample 2of 4
Input
31 1 1
Output
BBB
Sample 3of 4
Input
103 3 2 2 5 4 1 5 4 1
Output
RGRGRRRGGG
Sample 4of 4
Input
103 9 3 1 2 1 2 4 4 4
Output
RBGRRGGBBB
58%
1211E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)