cf/mirror

Yuu Koito and Minimum Absolute Sum

CF
2171B900· newbie2s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 1multi-test • hover to link
Input
6
4
2 -1 7 1
4
-1 2 4 -1
8
2 -1 1 5 11 12 1 -1
3
-1 -1 -1
3
2 5 4
2
-1 5
Output
1
2 0 7 1
0
0 2 4 0
0
2 0 1 5 11 12 1 2
0
0 0 0
2
2 5 4
0
5 5
2171B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)