摘要:
最小生成树+最短路+并查集维护 题目 #include<bits/stdc++.h> #define int long long using namespace std; const int N=2e5+100,M=N*2; int n,m,s; int h[N],e[M],ne[M],w[M],i 阅读全文
摘要:
贪心 #include<bits/stdc++.h> #define int long long using namespace std; const int N=1e3+100; int n,m; struct NODE{ int l,r,val; bool operator < (const N 阅读全文