摘要:
这一题是我写的第一个树形dp题。View Code #include <iostream>#include <cstdio>#include <memory.h>#include <algorithm>using namespace std;const int INF = 6005;int l[INF],r[INF];int d[INF],w[INF];bool vis[INF],in[INF];int dp[INF][2];void add(int x,int y){ if(d[x]==0)l[x]=y; else r[d[x]]=y; d[x 阅读全文
posted @ 2012-07-27 16:27
HNU_AlienForce
阅读(127)
评论(0)
推荐(0)
浙公网安备 33010602011771号