cf/mirror

Perfect Matching

CF
1633F2800· international gm12s512 MB⇄ interactive

Examples

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