cf/mirror

Coloring Game

CF
1991E1900· candidate master2s256 MB⇄ interactive

Examples

Sample 1of 1
Input
2
3 3
1 2
2 3
3 1
 
 
3 1
 
2 2
 
1 1
4 4
1 2
2 3
3 4
4 1
 
2 3
 
1 2
 
2 1
 
3 1
Output
Alice
3 1
 
1 2
 
2 1
 
 
 
 
 
 
Bob
 
1 2
 
2 1
 
4 1
 
3 3
1991E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…