Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
92770 | 刘轻松 | 字符串包含判断 | C++ | Accepted | 3 MS | 280 KB | 223 | 2024-10-06 14:01:05 |
#include<iostream> #include<cstring> using namespace std; int main(){ string s1,s2; cin>>s1>>s2; int b; b = s1.find(s2); if(b!=-1){ cout<<"yes"; } else{ cout<<"no"; } return 0; }