摘要:
http://poj.org/problem?id=1260 1 #include 2 #include 3 #include 4 5 using namespace std; 6 int main() 7 { 8 int t,dp[120],s[120]; 9 cin>>t;10 while(t--)11 {12 int n,ai[120],pi[120];13 cin>>n;14 s[0] = 0;15 for (int i = 1; i >ai[i]>>pi[i];18 ... 阅读全文
posted @ 2013-10-07 14:30
N_ll
阅读(194)
评论(0)
推荐(0)
摘要:
http://poj.org/problem?id=3267题意:给出一个主串,一些单词,匹配这些单词,问至少要删除多少字符。 1 #include 2 #include 3 #include 4 #include 5 #include 6 int dp[350];//dp[i]表示i->L删除的字符数 7 using namespace std; 8 int main() 9 {10 int n,L;11 string word[606],s;12 cin>>n>>L;13 cin>>s;14 for (int i = 0; i >word[. 阅读全文
posted @ 2013-10-07 11:10
N_ll
阅读(188)
评论(0)
推荐(0)

浙公网安备 33010602011771号