cf/mirror

Equal Sums

CF
988C1400· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
2
5
2 3 1 3 2
6
1 1 2 2 2 1
Output
YES
2 6
1 2
Sample 2of 3
Input
3
1
5
5
1 1 1 1 1
2
2 3
Output
NO
Sample 3of 3
Input
4
6
2 2 2 2 2 2
5
2 2 2 2 2
3
2 2 2
5
2 2 2 2 2
Output
YES
2 2
4 1
988C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)