题意分析
裸题,输出scc的个数
代码总览
#include <bits/stdc++.h>
using namespace std;
const int nmax = 1e5 +10;
const int INF = 0x3f3f3f3f;
int low[nmax];
int dfn[nmax];
int sstack[nmax];
int head[nmax];
int color[nmax];
bool visit[nmax];
typedef struct{
裸题,输出scc的个数
#include <bits/stdc++.h>
using namespace std;
const int nmax = 1e5 +10;
const int INF = 0x3f3f3f3f;
int low[nmax];
int dfn[nmax];
int sstack[nmax];
int head[nmax];
int color[nmax];
bool visit[nmax];
typedef struct{