cf/mirror

Sort the Array

CF
451B1300· pupil1s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
3
3 2 1
Output
yes
1 3
Sample 2of 4
Input
4
2 1 3 4
Output
yes
1 2
Sample 3of 4
Input
4
3 1 2 4
Output
no
Sample 4of 4
Input
2
1 2
Output
yes
1 1
451B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)