cf/mirror

Number Circle

CF
1189B1100· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
3
2 4 3
Output
YES
4 2 3
Sample 2of 4
Input
5
1 2 3 4 4
Output
YES
4 4 2 1 3
Sample 3of 4
Input
3
13 8 5
Output
NO
Sample 4of 4
Input
4
1 10 100 1000
Output
NO
1189B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)