cf/mirror

Number of Simple Paths

CF
1454E2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
3
1 2
2 3
1 3
4
1 2
2 3
3 4
4 2
5
1 2
2 3
1 3
2 5
4 3
Output
6
11
18
1454E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…