| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135917 | 鲁博睿 | 字符串包含判断 | C++ | Accepted | 2 MS | 276 KB | 242 | 2025-11-08 17:22:20 |
#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; }