| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135904 | 田祥江 | 字符串包含判断 | C++ | Accepted | 2 MS | 276 KB | 365 | 2025-11-08 17:14:50 |
#include<bits/stdc++.h> using namespace std; int main(){ string s1,s2; cin>>s1>>s2; int len1=s1.size(); int len2=s2.size(); for(int i=0;i<len1;i++){ if(s1[i]==s2[0]){ for(int j=1;j<len2;j++){ if(s1[i+j]!=s2[j]){ break; } if(j==len2-1){ cout<<"yes"; return 0; } } } } cout<<"no"; return 0; }