cf/mirror

Dwarves, Hats and Extrasensory Abilities

CF
1063C1900· candidate master2s256 MB⇄ interactive

Examples

Sample 1of 1
Input
5
 
black
 
black
 
white
 
white
 
black
Output
0 0
 
3 1
 
2 3
 
4 4
 
0 2
 
1 3 4 1
1063C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)