摘要: 简单的DP#include<iostream>#include<string>using namespace std;int main(){ int a[1010]; int dp[1010]; int n, max; int i1, i2, i3; while( cin >> n ) { if( n == 0) break; for( i1 = 0; i1 < n; i1 ++ ) { cin >> a[i1]; dp[i1] = a[i1]; ... 阅读全文
posted @ 2012-11-24 20:59 BUG易 阅读(146) 评论(0) 推荐(0) 编辑