Two Shuffled Sequences
1144C1000· newbie2s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
77 2 7 3 3 1 4
Output
YES23 757 4 3 2 1
Sample 2of 4
Input
54 3 1 5 3
Output
YES1345 4 3 1
Sample 3of 4
Input
51 1 2 1 2
Output
NO
Sample 4of 4
Input
50 1 2 3 4
Output
YES054 3 2 1 0
58%
1144C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)