Devu and Partitioning of the Array
439C1700· expert1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
5 5 32 6 10 5 9
Output
YES1 91 51 101 61 2
Sample 2of 3
Input
5 5 37 14 2 9 5
Output
NO
Sample 3of 3
Input
5 3 11 2 3 7 5
Output
YES3 5 1 31 71 2
58%
439C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)