Beauty of a Permutation
1205F3400· legendary gm2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
41 15 65 85 10
Output
YES1YES2 4 1 5 3NOYES2 3 1 4 5
Sample 2of 2
Input
24 10100 1
Output
YES1 2 3 4NO
58%
1205F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)