[ACM-ICPC][搜索] 5729 - Coalescing Continents
Continental drift refers to the idea that once the
earth’s continents were all in one piece and with time they drifted away from
each other and arrived at their present positions.
In this problem, we
are concerned with the reverse process – Continental
Coalesce.
...