Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
3449 | 吴奕希 | 字符串包含判断 | C++ | Accepted | 0 MS | 268 KB | 354 | 2024-06-08 16:50:24 |
# include<iostream> using namespace std; int main(){ string a, b, c; cin>>a>>b; int s1 = a.size(), s2 = b.size(); for(int i = 0; i < s1-s2; i++){ c = ""; for(int j = i; j < i+s2; j++)c += a[j]; if(b==c){ cout<<"yes"; return 0; } } cout<<"no"; return 0; }