Array Restoration
1023D1700· expert1s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
4 31 0 2 3
Output
YES1 2 2 3
Sample 2of 4
Input
3 1010 10 10
Output
YES10 10 10
Sample 3of 4
Input
5 66 5 6 2 2
Output
NO
Sample 4of 4
Input
3 50 0 0
Output
YES5 4 2
58%
1023D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)