cf/mirror

Spring Cleaning

CF
1346C1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
6
5 4 3 5
1 2 2 3 5
5 3 4 5
1 5 1 5 5
5 4 5 6
1 2 5 3 5
4 3 2 10
4 4 1 1
4 3 10 2
4 4 1 1
4 1 5 4
1 2 1 3
Output
3
9
6
4
2
9
1346C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)