cf/mirror

Pathwalks

CF
960F2100· master1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3 3
3 1 3
1 2 1
2 3 2
Output
2
Sample 2of 2
Input
5 5
1 3 2
3 2 3
3 4 5
5 4 0
4 5 8
Output
3
960F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…