116c专题

Codeforces Beta Round #87 (Div. 2) / 116C Party (DFS树的最大深度)

http://codeforces.com/problemset/problem/116/C 从树根DFS,看最大能递归几层。 /*30ms,300KB*/#include<bits/stdc++.h>using namespace std;const int mx = 2005;vector<int> v[mx];bool fa[mx];int maxlen;void d