题目通道\]([战略游戏 - 洛谷](https://www.luogu.com.cn/problem/P2016 "战略游戏 - 洛谷")) ```cpp #include using namespace std; int n,f[5000][5000],father[5000]; vector s[5000]; inline void dfs(int x){ f[x][0]=0; f[x][1]=1; if(s[x].size()==0)return; for(int i=0;i