cf/mirror

Cells Arrangement

CF
1968E1600· expert2s256 MB⌨ stdin/stdout

Examples

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