提交时间:2024-08-14 17:49:51
运行 ID: 50212
#include<bits/stdc++.h> using namespace std; char s1[205],s2[205]; int main() { cin>>s1>>s2; if(strstr(s2,s1)){ cout<<s2<<" is substring of "<<s1; return 0; } if(strstr(s1,s2)){ cout<<s1<<" is substring of "<<s2; return 0; } cout<<"No substring"; return 0; }