2012年4月5日

poj 1185

摘要: http://poj.org/problem?id=1185View Code /*Problem: 1185 User: ruan123Memory: 2128K Time: 266MSLanguage: G++ Result: Accepted说下dp方程:dp[i][j][k] 为第i行状态为Sj,第i-1行状态为Sk时前i行最多能放置的炮数。 */#include <stdio.h>#include <string.h>#include <stdlib.h>int dp[105][65][65];int s[105],map[105],cnt,... 阅读全文

posted @ 2012-04-05 21:37 aigoruan 阅读(145) 评论(0) 推荐(0)

导航