摘要: Problem Detail - 关押罪犯 - 追梦算法网 题意就是给你一群罪犯,怨气大的不能在同一个(其实也可以),反正看在同一个集合里面的怨气的最大值 #include<iostream> #include<algorithm> using namespace std; const int N= 阅读全文
posted @ 2022-04-11 22:54 小志61314 阅读(53) 评论(0) 推荐(0)
摘要: Problem Set - 天梯赛,L2 - 追梦算法网 题意给你城市以及道路,看看至少还要连通多少条道路 求连通块吧然后-1 #include<iostream> using namespace std; const int N=100010; int p[N]; int find(int x) 阅读全文
posted @ 2022-04-11 17:53 小志61314 阅读(89) 评论(0) 推荐(0)