cf/mirror

Matching vs Independent Set

CF
1198C2000· candidate master1s256 MB⌨ stdin/stdout

Examples

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