Beautiful Sequence
1264B1900· candidate master1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
2 2 2 1
Output
YES0 1 0 1 2 3 2
Sample 2of 3
Input
1 2 3 4
Output
NO
Sample 3of 3
Input
2 2 2 3
Output
NO
58%
1264B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)