cf/mirror

Alternating Path

CF
2204D1400· specialist2s512 MB⌨ stdin/stdout

Examples

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