HDU1693Eat the Trees不用分左右插头的DP。关键就是逐格递推。行与行之间的转移看轮廓线发现很happy。 1 int a[13][13]; 2 ll dp[13][13][1>b[j-1]&3,y=v>>b[j]&3;ll w=dp[pre][k];35 i... Read More
posted @ 2015-04-04 11:00 ZYF-ZYF Views(1015) Comments(0) Diggs(0) Edit