| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135905 | 王丞杰 | 字符串包含判断 | C++ | Wrong Answer | 1 MS | 272 KB | 374 | 2025-11-08 17:15:33 |
#include<bits/stdc++.h> using namespace std; int main() { int n=0,j=0; string s,s1; getline(cin,s); getline(cin,s1); int a=s.size(); int b=s1.size(); for(int i=0;i<a;i++){ if(s[i]==s1[0]){ for(int j=1;a;j++){ if(s[i+j] != s1[j]){ break; } if(j==a-1){ cout<<"yes"; return 0; } } } } cout<<"no"; }
------Input------
alshmcmydaycvgwdhdhzcagzfztecupjikaoouimkijczoiewi hdhzcagzfz
------Answer-----
yes
------Your output-----
no