13307130389_KangzhengGu_assignment8.5

并查集版本写丑了，连goto和throw都用进去了= =