0
已解决
高杨
资深守护
资深守护
题号:1094
#include<bits/stdc++.h>
using namespace std;
int main()
{
string a,b;
int m=0,k=0,j=0;
cin>>a>>b;
for(int i=0;i<b.size();i++)
{
if(b[i]==a[m])
{
m++;
}
}
if(m==a.size())
{
cout<<a<<" is included in "<<b;
k=9;
}
m=0;
for(int i=0;i<a.size();i++)
{
if(a[i]==b[m])
{
m++;
}
}
if(m==b.size())
{
cout<<b<<" is included in "<<a;
j=9;
}
if(k==0&&j==0)
{
cout<<"No including";
}
return 0;
}