cf/mirror

Make Nonzero Sum (hard version)

CF
1753A21500· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5
4
0 0 0 0
7
-1 1 0 1 0 1 0
5
0 -1 1 0 1
3
1 0 1
1
1
Output
4
1 1
2 2
3 3
4 4
4
1 1
2 2
3 5
6 7
-1
2
1 1
2 3
-1
1753A2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)