cf/mirror

Imbalanced Arrays

CF
1852B1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5
1
1
4
1 4 3 4
3
0 1 0
4
4 3 2 1
3
1 3 1
Output
YES
1
NO
YES
-3 1 -2
YES
4 2 -1 -3
YES
-1 3 -1
1852B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…