cf/mirror

LuoTianyi and the Floating Islands (Easy Version)

CF
1824B11800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4 2
1 2
2 3
3 4
Output
666666674
Sample 2of 2
Input
5 1
1 2
2 3
3 4
3 5
Output
1
1824B1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…