摘要: 树形dp,bfs。 dfs爆栈。 #include #include #include using namespace std; const int maxn = 1000000 + 10; const int maxm = 2000000 + 10; int g[maxn],v[maxm],next[maxm],c[maxm],eid; int q[maxn],f[maxn],t[max... 阅读全文
posted @ 2016-05-06 16:04 invoid 阅读(124) 评论(0) 推荐(0) 编辑