【題解】洛谷P1026[NOIP2001]統計單詞個數 區間DP+字符串

題目鏈接 參考了大佬題解中string的基操 #include<cstdio> #include<iostream> using namespace std; string str,ch,word[10]; int p,k,s,sum[510][510],dp[510][50]; bool Find(int l,int r) { string aim=str.substr(l,r-l+1);
相關文章
相關標籤/搜索