Im_hear

导航

2012年5月4日

zoj 2284

摘要: 简单的DP,开始以为是杨辉三角,所以数组用了yanghui[][],但是这个数组构造的时候真的似yanghui附体啊。source code 阅读全文

posted @ 2012-05-04 21:42 Im_hear 阅读(93) 评论(0) 推荐(0) 编辑

zoj 2284

摘要: View Code 1 #include <cstdio> 2 #include <iostream> 3 #include <algorithm> 4 using namespace std; 5 6 long long yanghui[22][222] = {0}; 7 8 void init() 9 {10 int row,column;11 12 for(row = 1; row < 20; ++ row){13 yanghui[row][0] = 1;14 for(column = 0; yanghui[row][col... 阅读全文

posted @ 2012-05-04 21:36 Im_hear 阅读(117) 评论(0) 推荐(0) 编辑