cf/mirror

Fill the Matrix

CF
1841E2200· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
3
0 0 0
9
4
2 0 3 1
5
4
2 0 3 1
6
4
2 0 3 1
10
10
0 2 2 1 5 10 3 4 1 1
20
1
1
0
Output
6
3
4
4
16
0
1841E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)