第二题,并查集。思路有点难写,直接看代码应该会比较清楚,不懂的可以提一下,贴在博客里https://blog.csdn.net/qq_39898877/article/details/108208210
点赞 评论

相关推荐

牛客网
牛客企业服务