摘要:
```#include#include#include#includeusing namespace std;const int N=310;int n,m;int h[N],e[N],ne[N],idx;int w[N];int f[N][N];void add(int a,int b){ e[idx]=b; ne[idx]=h[a]; h[a]=idx++;}void dfs(int u){ ... 阅读全文
摘要:
```#include #include #include using namespace std;const int N = 2e5 + 10;int h[N], e[N], ne[N], idx;int ans[N];int a[N];int f[N][25];int n, m;void add(int a, int b){ e[idx] = b; ne[idx] = h[a]; h[a] =... 阅读全文