cf/mirror

Devu and Partitioning of the Array

CF
439C1700· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
5 5 3
2 6 10 5 9
Output
YES
1 9
1 5
1 10
1 6
1 2
Sample 2of 3
Input
5 5 3
7 14 2 9 5
Output
NO
Sample 3of 3
Input
5 3 1
1 2 3 7 5
Output
YES
3 5 1 3
1 7
1 2
439C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)