摘要:
#include<bits/stdc++.h> #define ll long long using namespace std; const int N = 2e6 + 10, inf = 0x3f3f3f3f; int n, m; // n: 顶点数, m: 边数 vector<int> g[N 阅读全文
摘要:
#include<bits/stdc++.h> #define ll long long using namespace std; const int N = 2e5 + 10,inf = 0x3f3f3f3f; vector<int> g[N]; // 邻接表存储图 int dfn[N],low[ 阅读全文
摘要:
#include<bits/stdc++.h> #define ll long long using namespace std; const int N = 5e5 + 10, inf = 0x3f3f3f3f; // 边的结构体:v-目标节点,id-边的编号(用于区分重边) struct nod 阅读全文
摘要:
#include<bits/stdc++.h> #define ll long long using namespace std; const int N = 2e5 + 10,inf = 0x3f3f3f3f; vector<int> g[N]; int R[N]; int vis[N]; int 阅读全文