acgo题库
  • 首页
  • 题库
  • 题单
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情题解(0)讨论(0)提交记录(0)
  • 不是题解!!!

    ~~禁止阅读 ~~

    userId_undefined

    Ù̜ṔD̂Ă̭T̃̆Ē̅

    倔强青铜
    33阅读
    2回复
    2点赞
  • 题解

    userId_undefined

    法兰西玫瑰

    倔强青铜
    30阅读
    0回复
    0点赞
  • 不是题解

    userId_undefined

    Ù̜ṔD̂Ă̭T̃̆Ē̅

    倔强青铜
    9阅读
    0回复
    1点赞
  • 题解

    #include<iostream> using namespace std; int main(){ int i=0; int j=0,k,l=0,flag; char a[101],b[101],c[101],d[202]; cin>>a>>b>>c; while(a[i]!='\0'){ d[i]=a[i]; i=i+1; } while(b[i]!='\0'){ a[i]=b[j]; j=j+1; i=i+1; } while(k=i-j){ if(d[k]!=b[0]){ k++; } else{ flag=1; for(l=1;l<=j;l++){ if(d[k+l]!=b[l]){ flag=0; cout<< break; } } } } return 0; }

    userId_undefined

    秩序----鬼影之魂 王子墨

    倔强青铜
    6阅读
    2回复
    0点赞
  • 不是题解

    userId_undefined

    Ù̜ṔD̂Ă̭T̃̆Ē̅

    倔强青铜
    6阅读
    0回复
    1点赞
  • 题解

    userId_undefined

    acgoacgo

    荣耀黄金
    9阅读
    0回复
    0点赞
  • 题解

    #include <bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; string s1=a+b; if(s1.find(c)!=string::npos) cout<<c<<" is substring of "<<a<<" and "<<b<<endl; else cout<<c<<" is not substring of "<<a<<" and "<<b<<endl; return 0; }

    userId_undefined

    Voldemort

    倔强青铜
    5阅读
    0回复
    0点赞
  • 医托贷马

    userId_undefined

    xxb

    秩序白银
    3阅读
    0回复
    0点赞
  • find()函数

    userId_undefined

    JMZ詹总

    倔强青铜
    1阅读
    0回复
    0点赞
  • 啊题解

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

    userId_undefined

    葬送的芙莉莲

    倔强青铜
    0阅读
    0回复
    0点赞
首页