摘要:
vector<int> e[N]; int dfn[N],low[N],tot; int stk[N],instk[N],top; int scc[N],siz[N],cnt; void tarjan(int x){ dfn[x]=low[x]=++tot; stk[++top]=x,instk[x 阅读全文
摘要:
#include <iostream> #include <cstring> #include<string> using namespace std; const int N = 1e6 + 10; int tree[N][26], p[N], e[N]; int idx; //插⼊字符串: vo 阅读全文
摘要:
code: #include<iostream> #include<cstring> using namespace std; const int N=16; int d[N],n; int dp[N]; int dfs(int pos,bool limit){ if(pos==0) return 阅读全文