文章
1
粉丝
133
获赞
0
访问
7.1k
这一组样例
aaaaaqaqaqaqaqaqaqaq
aqaqaqsqsqqaqaqaqaq
```
#include <iostream>
#include <string>
#include <algorithm>
#include <cstring>
using namespace std;
const int N = 1010;
int f[N][N];
int main()
{
string s1, s2;
while(cin >> s1 >> s2)
{
memset(f, 0, sizeof f);
int i = 0;
while(s1[i])
{
if(s1[i] >= '0' && s1[i] <= '9') s1.erase(s1.begin() + i);
else i ++;
}
int len = 0,id = 0;
for(int i = 1; i <= s1.size(); i ++ )
{
for(int j = 1; j <= s2.size(); j ++)
&nbs...
登录后发布评论
暂无评论,来抢沙发