1 #include 2 #include 3 #include 4 using namespace std; 5 #define mod 10007 6 7 char str[1005]; 8 int dp[1005][1005]; 9 10 int main()11 {12 int ... Read More
posted @ 2015-12-20 13:39 xiaotian_小天 Views(119) Comments(0) Diggs(0)
两种算法1. O(n^2) 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int a[1005]; 7 int dp[1005]; 8 int main() 9 {10 int n, maxn;11 whil... Read More
posted @ 2015-12-20 12:02 xiaotian_小天 Views(133) Comments(0) Diggs(0)