0
0
已采纳
郭梓强
初级光能
初级光能
我来帮你啦
1094核心代码:
string a,b;
getline(cin,a);
getline(cin,b);
if(a.find(b)!=-1){
输出b和" is included in "和a;
} else if(b.find(a)!=-1){
输出a和" is included in "和b;
} else {
输出"No including";
}
完美AC*★,°*:.☆( ̄▽ ̄)/$:*.°★* 。
0
刘展硕
新手守护
新手守护
定义 字符串是s1,s2;
输入s1,s2;
如果s1.size()>s2.size()
swap(s1,s2);
如果s2.find(s1)!=string::npos
输出s1" is included in "<<s2换行;
else if(s1.find(s2)!=string::npos)
输出s2<<" is included in "<<s1换行;
else
输出"No including"换行;
return 0;
0
0
0
0