Maximum Matching
1038E2400· grandmaster2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
62 1 41 2 43 4 42 8 33 16 31 32 2
Output
63
Sample 2of 3
Input
71 100000 11 100000 21 100000 24 50000 33 50000 44 50000 43 50000 3
Output
300000
Sample 3of 3
Input
41 1000 12 500 23 250 34 125 4
Output
1000
58%
1038E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…