1 条题解

  • 1
    @ 2025-12-19 17:41:13
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        string a,b;
        cin>>a>>b;
        if(a.find(b)!=a.npos)
            cout<<b<<" is substring of "<<a<<endl;
        else if(b.find(a)!=b.npos)
            cout<<a<<" is substring of "<<b<<endl;
        else
            cout<<"No substring"<<endl;
        return 0;
    }
    
    • 1

    信息

    ID
    6975
    时间
    1000ms
    内存
    128MiB
    难度
    1
    标签
    递交数
    2
    已通过
    2
    上传者