LCS
coding__girl
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
uva 10405 Longest Common Subsequence
求两个字符串x,y的最长公共子序列 dp[i][j]表示x的前缀xi和y的前缀yj的LCS的长度 状态转移方程为: if(a[i]==b[j]) dp[i][j]=dp[i-1][j-1]+1; else dp[i][j]=Max{dp[i-1][j],dp[i],[j-1]};#include <iostream>#include <cstring&...原创 2018-03-14 10:31:44 · 185 阅读 · 0 评论 -
uva 10192 Vacation
You are planning to take some rest and to go out on vacation, but you really don’t know which cities you should visit. So, you ask your parents for help. Your mother says “My son, you MUST visit Paris...原创 2018-03-14 10:37:51 · 222 阅读 · 0 评论 -
uva 531 Compromise
In a few months the European Currency Union will become a reality. However, to join the club, the Maastricht criteria must be ful lled, and this is not a trivial task for the countries (maybe except f...原创 2018-03-14 11:11:25 · 251 阅读 · 0 评论
分享