UVA 1292 Strategic game 树形DP
摘要:
基础题目。 dp[i][j]表示结点为i,且父节点选取情况为j的状态(j=1表示选,0不选)//#pragma comment(linker, "/STACK:1024000000,1024000000")#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;typedef long long ll;typedef pair pii;#define pb(a) pus 阅读全文
posted @ 2013-09-03 21:01 BMan、 阅读(216) 评论(0) 推荐(0) 编辑