| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135914 | 刘益梵 | 字符串包含判断 | C++ | Accepted | 1 MS | 276 KB | 266 | 2025-11-08 17:21:25 |
# include<bits/stdc++.h> using namespace std; int main(){ string s1,s2; cin>>s1>>s2; int a=-1; a=s1.find(s2); //返回第一次出现的位置,没有返回-1 if(a!=-1) cout<<"yes"; else cout<<"no"; return 0; }