poj 1163 The Triangle
摘要:
简单的动态规划,重点是怎样才算是好的实现。 1 # include <stdio.h> 2 3 # define MAXN 100 4 5 short int a[MAXN][MAXN]; 6 7 int main() 8 { 9 int n, i, j;10 11 scanf("%d", &n);12 13 for (i = 0; i < n; ++i)14 for (j = 0; j <= i; ++j)15 scanf("%d", &a[i][j]);16 17 for (i = n... 阅读全文
posted @ 2012-03-25 15:15 getgoing 阅读(185) 评论(0) 推荐(0) 编辑