cf/mirror

Codeforces Heuristic Contest 001

CF
2195H2400· grandmaster4s1024 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
2
1
2
Output
2
1 1 1 2 2 1
2 3 3 2 3 3
12
1 1 1 2 2 1
2 2 3 2 3 1
1 3 1 4 2 3
2 4 3 4 3 3
1 5 1 6 2 5
2 6 3 6 3 5
4 1 4 2 5 1
5 2 6 2 6 1
4 3 4 4 5 3
5 4 6 4 6 3
4 5 4 6 5 5
5 6 6 6 6 5
2195H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)