cf/mirror

Speedrun

CF
1863E2100· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
4 4 24
12 16 18 12
1 2
1 3
2 4
3 4
4 3 10
2 6 5 9
1 4
2 4
3 4
2 1 10
5 5
1 2
5 0 1000
8 800 555 35 35
5 0 10
3 2 5 4 7
3 2 5
4 3 2
1 2
2 3
Output
24
7
0
480
5
8
1863E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…