cf/mirror

Two Shuffled Sequences

CF
1144C1000· newbie2s256 MB⌨ stdin/stdout

Examples

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