cf/mirror

Prime XOR Coloring

CF
1991D1900· candidate master2s256 MB⌨ stdin/stdout

Examples

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