cf/mirror

Blackslex and Another RGB Walking

CF
2179F2000· candidate master5s256 MB⇄ interactive

Examples

Sample 1of 2
Input
first
2
7 8
1 2
1 6
3 2
4 2
6 4
4 7
5 6
5 7
 
4 4
1 2
1 3
4 2
4 3
Output
rrgbggr
rbbb
Sample 2of 2
Input
second
2
2
3
grr
3
gbr
 
1
2
rb
Output
1
3
1
2179F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…