摘要:
# include# include#includeusing namespace std;# define maxn 2005char s[maxn];int dp[maxn][maxn],cost[maxn];int main(){ int n,m,a,b,i,j; char temp; while(scanf("%d%d",&n,&m)!=EOF) { memset(dp,0,sizeof(dp)); getchar(); scanf("%s",s+1); getchar(); for(i=1;... 阅读全文