cf/mirror

Mahmoud and Ehab and the wrong algorithm

CF
959C1500· specialist2s256 MB⌨ stdin/stdout

Examples

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