首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
4545专题
HDU 4545 魔法串(water!)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4545 这个题目没什么好解释的,在一个串中找另外一个串就行了,没什么难度 #include <iostream>#include <string.h>#include <stdio.h>#include <algorithm>#include <set>#include <map>u
阅读更多...
hdu 4545 魔法串(金山居)
就是一个求最长公共子序列的水题 #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>using namespace std;#define MAXN 1005int dp[MAXN][MAXN];char s1[MAXN], s2[MAXN];char ch1[2], ch2[2
阅读更多...