cf/mirror

Road Problem

CF
45H2100· master3s256 MB⌨ stdin/stdout
#graphs

Examples

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