Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
82869 | 胡盛哲 | 字符串包含判断 | C++ | Accepted | 1 MS | 276 KB | 282 | 2024-07-13 16:02:21 |
#include<stdio.h> #include<cstring> #include<algorithm> #include<iostream> using namespace std; int main(){ string s; string m; getline(cin,s); getline(cin,m); if(s.find(m)<s.size()){ cout<<"yes"; }else{ cout<<"no"; } return 0; }