Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
105487 | 欧阳俊懿 | 字符串包含判断 | C++ | Accepted | 1 MS | 276 KB | 278 | 2025-01-13 17:07:40 |
#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; }