摘要: http://www.lightoj.com/volume_showproblem.php?problem=1044 1 #include 2 #include 3 #include 4 using namespace std; 5 #define N 1005 6 struct op{ 7 int a,b,len; 8 }mes[N*N]; 9 int dp[N],ct,n;10 char s[N];11 bool map[N][N];12 void init()13 {14 memset(map,0,sizeof(map));15 n=strlen(s+1);... 阅读全文