cf/mirror

Exact Neighbours (Medium)

CF
1970B22100· 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
0 1 3 1
Output
YES
1 1
2 1
4 1
3 1
1 1 1 3
1970B2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)