andre_joy

导航

2012年7月20日

hdu 4301

摘要: 地址:http://acm.hdu.edu.cn/showproblem.php?pid=4301题意:分巧克力,注意每块巧克力都不一样。mark:dp,三维的。代码:#include <stdio.h>int dp[1010][2010][2];int main(){ int t,i,j; dp[1][1][0] = dp[1][2][1] = dp[2][1][0] = dp[2][3][0] = dp[2][4][1] = 1; dp[2][2][0] = dp[2][3][1] = 3; dp[2][2][1] = 3; for(i = 3; i <= 1... 阅读全文

posted @ 2012-07-20 09:17 andre_joy 阅读(178) 评论(0) 推荐(0) 编辑