cf/mirror

Choose a Square

CF
1221F2400· grandmaster6s256 MB⌨ stdin/stdout

Examples

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