摘要: 足足跑了2秒啊。。。贴代码:View Code 1 #include <stdio.h> 2 #include <string.h> 3 char str[1001]; 4 int dp[1001][1001],p[1001][1001]; 5 int DP(int x,int y) 6 { 7 int &ans = dp[x][y]; 8 if(ans != -1) 9 return ans;10 if(x >= y)11 {12 ans = 0;13 return ans;14 }15 if(... 阅读全文
posted @ 2012-05-26 21:21 浙西贫农 阅读(223) 评论(0) 推荐(0) 编辑