hdu 2151
摘要:
地址:http://acm.hdu.edu.cn/showproblem.php?pid=2151题意:中文……mark:递推。dp[i][j]代表第i时刻在第k棵树的方法数。dp[i][j] = dp[i-1][j-1] + dp[i-1][j+1]。代码:#include <stdio.h>#include <string.h>int dp[110][110];int main(){ int n,p,m,t; int i,j; while(~scanf("%d%d%d%d", &n, &p, &m, &t)) { 阅读全文
posted @ 2012-07-08 23:46 andre_joy 阅读(121) 评论(0) 推荐(0) 编辑