void dfs(long u,long father){dep[u]=dep[father]+1;//只在这里初始化dep for(long i=1;(1<<i)<=dep[u];i++) fa[u][i]=fa[fa[u][i-1]][i-1];//只...