Use DSU to calculate the sum of minimum values in every connected component.

Statistics

67% Solution Ratio
nahidhasan98Earliest, Oct '19
nnnnnnFastest, 0.0s
subhashis_cseLightest, 524 kB
Jabir.837748Shortest, 544B
Toph uses cookies. By continuing you agree to our Cookie Policy.