Balance the Cards
1503F3500· legendary gm3s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
51 3-3 -54 -32 2-1 -4-2 53 -15 1-4 4-5 -2
Output
YES1 34 -3-4 4-1 -45 13 -12 2-2 5-3 -5-5 -2
Sample 2of 2
Input
21 1-1 22 -1-2 -2
Output
NO
58%
1503F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…