| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135770 | 李朋秦 | 字符串包含判断 | C++ | Accepted | 1 MS | 284 KB | 350 | 2025-11-08 14:21:52 |
#include<bits/stdc++.h> using namespace std; int main(){ string a,b; cin>>a>>b; int l1=a.size(); int l2=b.size(); for(int i=0;i<l1;i++){ if(a[i]==b[0]){ int f=1; for(int j=i,k=0;k<l2;j++,k++){ if(a[j]!=b[k]){ f=0; break; } } if(f){ cout<<"yes"; return 0; } } } cout<<"no"; return 0; }