Lesha and array splitting
754A1200· pupil2s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
31 2 -3
Output
YES21 23 3
Sample 2of 4
Input
89 -12 3 4 -4 -10 7 3
Output
YES21 23 8
Sample 3of 4
Input
10
Output
NO
Sample 4of 4
Input
41 2 3 -5
Output
YES41 12 23 34 4
58%
754A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)