cf/mirror

Exact Neighbours (Hard)

CF
1970B32300· international master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4
0 4 2 4
Output
YES
4 4
1 3
2 4
3 1
1 1 1 3
Sample 2of 2
Input
4
1 3 0 1
Output
YES
2 1
4 1
1 1
3 1
3 3 3 1
1970B3.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)