摘要:
单点修改,区间查询树状数组,洛谷P3374 #include<bits/stdc++.h> using namespace std; const int N = 5e5 + 5; int n, m, a[N]; int chaxun(int n){ int ans = 0; while(1){ an 阅读全文
摘要:
边双连通分量:模板 #include<bits/stdc++.h> using namespace std; const int N = 5e5+5; int n, m, cnt, ans, dfn[N], low[N]; //dfn记录dfs序,low表示这个点除树边外能连到最浅 vector<i 阅读全文
摘要:
洛谷p4479 第一学dijkstra耶qwq #include<bits/stdc++.h> using namespace std; struct edge{ int to,v,next,w; }a[500005]; struct node{ int w,g; friend bool opera 阅读全文