Borya and Hanabi
442A1700· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
2G3 G3
Output
0
Sample 2of 3
Input
4G4 R4 R3 B3
Output
2
Sample 3of 3
Input
5B1 Y1 W1 G1 R1
Output
4
58%
442A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
2G3 G3
0
4G4 R4 R3 B3
2
5B1 Y1 W1 G1 R1
4