12 2019 档案

摘要:https://blog.csdn.net/weixin_43826249/article/details/103426301 阅读全文
posted @ 2019-12-09 13:25 AAAzhuo 阅读(110) 评论(0) 推荐(0)
摘要:贪心 #include <iostream> #include<algorithm> #include<string.h> #include<set> using namespace std; const int maxn=100010; int ans[maxn]; int a[4]; void 阅读全文
posted @ 2019-12-07 17:30 AAAzhuo 阅读(314) 评论(0) 推荐(0)
摘要:简单模拟 #include <iostream> #include<algorithm> #include<string.h> #include<set> using namespace std; const int maxn=400010; int a[maxn]; void solve() { 阅读全文
posted @ 2019-12-07 16:41 AAAzhuo 阅读(233) 评论(0) 推荐(0)
摘要:#include <iostream> #include <malloc.h> #include <stdio.h> using namespace std; typedef struct OLNode { int i,j; int e; struct OLNode *right,*down; }O 阅读全文
posted @ 2019-12-04 09:47 AAAzhuo 阅读(295) 评论(0) 推荐(0)
摘要:题意:一共n个点,m条线 若点a连通点b 则对于任何a<c<b,a均与b连通,若不连通,则你需要加边上去 问你需要加多少条边 采用并查集是因为 对于所有小于b并且与b连通的a 均用并查集代替 而其中一个点并查集不等于最大的b时 就需要加边上去 ans++ #include<iostream> #in 阅读全文
posted @ 2019-12-02 00:01 AAAzhuo 阅读(204) 评论(0) 推荐(0)