Given a bipartite graph with $L + R$ vertices and $M$ edges. $i$-th edge is $(a_ i, b_ i)$.
Calculate the maximum matching.
$L$ $R$ $M$
$a_ 0$ $b_ 0$
$a_ 1$ $b_ 1$
:
$a_ {M - 1}$ $b_ {M - 1}$
$K$
$c_ 0$ $d_ 0$
$c_ 1$ $d_ 1$
:
$c_ {K - 1}$ $d_ {K - 1}$
$K$ is the number of maximum matching, and $(c_ i, d_ i)$ is the edge of the matching.
4 4 7 1 1 2 2 0 0 3 1 1 2 2 0 3 2
3 0 0 1 1 2 2
Note that timelimit is different from https://judge.yosupo.jp/problem/bipartitematching
No. | Testdata Range | Score |
---|