i also use DP but got many WA...
here is my code
could someone give me some tricky test data
i am nearly crazy!
#include <iostream>
#include <cstring>
#define N 120
using namespace std;
char str[N],ans;
int s[N][N][3],from[N][N][3],l[N][N][3],r[N][N][3],n;
int table[3][3]={{1,1,0},{2,1,0},{0,2,2 ...