cf/mirror

Build Railway Stations

CF
1910F2000· candidate master3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
5 2
1 2
2 3
3 4
4 5
4 4
1 2
1 3
1 4
5 3
1 2
1 3
2 4
2 5
Output
34
9
26
1910F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…