1 条题解

  • 1
    #include<bits/stdc++.h>
    using namespace  std;
    string s1,s2; 
    int  main( ) 
    {
        cin>>s1>>s2;
        int a=s2.find(s1);
        int b=s1.find(s2);
        if (a!=-1)
            cout<<s1<<" is substring of "<<s2;
        else if (b!=-1)
            cout<<s2<<" is substring of "<<s1;
        else
            cout<<"No substring";
        return 0;   
    }
    
  • 1

信息

ID
2411
难度
6
分类
(无)
标签
递交数
143
已通过
44
通过率
31%
被复制
6
上传者