1296: 牛棚回声
摘要:解题思路:其实质是求两个字符串的最长相符长度注意事项:参考代码:#include <iostream>#include <cstring>using namespace std; int max_ma……
1296: 牛棚回声
摘要:```cpp
#include
using namespace std;
int max_match(string s1, string s2)
{
int len1=s1.leng……
P1029-题解(C语言代码)你老师没教你写注释吗???
摘要:解题思路: 看到这个题目我立刻就想到了KMP算法了,但是仔细一琢磨,这道题又还没到需要使用KMP算法的地步,应该使用基本的暴力法就能解决,但是思路又模模糊糊,于是乎我点开了注解,好家伙,我直接好……
P1029 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <iostream>
#include <string>
using namespace std;
int max_match(string ……
P1029 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int lee(char* a,char* b,int la,int lb){ int i,j,ma……