cf/mirror

Array Restoration

CF
1023D1700· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
4 3
1 0 2 3
Output
YES
1 2 2 3
Sample 2of 4
Input
3 10
10 10 10
Output
YES
10 10 10
Sample 3of 4
Input
5 6
6 5 6 2 2
Output
NO
Sample 4of 4
Input
3 5
0 0 0
Output
YES
5 4 2
1023D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)