cf/mirror

Maximize Determinant

CF
2190G3300· legendary gm4s512 MB⌨ stdin/stdout
#graphs

Examples

Sample 1of 1multi-test • hover to link
Input
6
2
1 1 1
2 2 1
2
2 2 1
1 1 1
4
1 4 4
2 2 3
4 4 6
2 4 5
6
1 6 1
5 5 1000
2 4 1000
6 6 1000
3 3 1000
4 4 1000
5
1 1 1000000000
1 1 1000000000
1 1 1000000000
1 1 1000000000
1 1 1000000000
5
1 4 15
4 4 14
2 3 16
2 2 14
3 5 15
Output
0
2
3
1000
4000000000
14
2190G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…