cf/mirror

Counting Shortcuts

CF
1650G2100· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
 
4 4
1 4
1 2
3 4
2 3
2 4
 
6 8
6 1
1 4
1 6
1 5
1 2
5 6
4 6
6 3
2 6
 
5 6
1 3
3 5
5 4
3 1
4 2
2 1
1 4
 
8 18
5 1
2 1
3 1
4 2
5 2
6 5
7 3
8 4
6 4
8 7
1 4
4 7
1 6
6 7
3 8
8 5
4 5
4 3
8 2
Output
2
4
1
11
1650G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…