Exact Neighbours (Hard)
1970B32300· international master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
40 4 2 4
Output
YES4 41 32 43 11 1 1 3
Sample 2of 2
Input
41 3 0 1
Output
YES2 14 11 13 13 3 3 1
58%
1970B3.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)