| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135891 | 刘益梵 | 字符串包含判断 | C++ | Accepted | 1 MS | 280 KB | 359 | 2025-11-08 16:59:22 |
# include<bits/stdc++.h> using namespace std; int main(){ string s1,s2; getline(cin,s1); getline(cin,s2); int s=0; for(int i=0;i<=s1.length();i++){ if(s1[i]==s2[s]){ s++; if(s==s2.length()){ cout<<"yes"; return 0; } } else{ s=0; } } cout<<"no"; return 0; }