摘要: 250pt:直接枚举跳过的位置求和即可。int n,m; int ABS(int a) { if (a p) { n = p.size(); int ans = 0; for (int i = 1; i tmp) ans = tmp; } return ans; } }; View Code 500pt:很简单的O(n^2)的DP:const int inf = 0x7fffffff; int n,m; int dp[N]; boo... 阅读全文
posted @ 2013-11-02 11:50 E_star 阅读(526) 评论(0) 推荐(0) 编辑