Problem F: 排列(2025-T6)
Memory Limit:128 MB
Time Limit:2.000 S
Judge Style:Text Compare
Creator:
Submit:6
Solved:1
Description

Input

Output

Sample Input Copy
3
3
3 3 3
3
1 1 1
5
3 2 2 5 5
Sample Output Copy
YES
1 2 3
NO
YES
1 -3 -2 4 5
HINT
