cf/mirror

Pashmak and Graph

CF
459E1900· candidate master1s256 MB⌨ stdin/stdout

Examples

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