5 条题解

  • 0
    @ 2024-7-29 14:58:39
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        string a,b;
        cin >> a >> b;
        if(a.find(b)!=-1){
            cout << b << " is substring of " << a;
        }
        else if(b.find(a)!=-1){
            cout << a << " is substring of " << b;
        }
        else{
            cout << "No substring" << endl;
        }
        return 0;
    }
    

    信息

    ID
    346
    时间
    1000ms
    内存
    128MiB
    难度
    8
    标签
    递交数
    118
    已通过
    17
    上传者