cf/mirror

Yet Another Minimization Problem

CF
1637D1800· expert2s256 MB⌨ stdin/stdout

Examples

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