社区讨论
80分求助,错在#1 #4上!!!
B2118验证子串参与者 4已保存回复 10
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 10 条
- 当前快照
- 1 份
- 快照标识符
- @mhjt1nqr
- 此快照首次捕获于
- 2025/11/04 08:02 4 个月前
- 此快照最后确认于
- 2025/11/04 08:02 4 个月前
CPP
#include<bits/stdc++.h>
using namespace std;
string a,b;
int main(){
cin>>a>>b;
if(a==b){
cout<<b<<" is substring of "<<a<<endl;
}
else if(b==a){
cout<<a<<" is substring of "<<b<<endl;
}
else{
cout<<"No substring"<<endl;
}
}
回复
共 10 条回复,欢迎继续交流。
正在加载回复...