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

浙公网安备 33010602011771号