摘要:
最小生成树+最短路+并查集维护 题目 #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 阅读全文
posted @ 2024-09-14 20:20
袍蚤
阅读(9)
评论(0)
推荐(0)
摘要:
贪心 #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 阅读全文
posted @ 2024-09-14 15:25
袍蚤
阅读(15)
评论(0)
推荐(0)