Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
97993 任斌 字符串包含判断 C++ Wrong Answer 0 MS 272 KB 324 2024-11-17 10:12:38

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { string a,b; int n=1; cin>>a>>b; for(int i=0;i<a.length();i++){ for(int j=i,k=0;k<b.length();k++,j++){ if(a[j]!=b[k]){ n=0; break; } } if(n==1){ cout<<"yes"<<endl; return 0; } } cout<<"no"<<endl; return 0; }


Run Info:

------Input------
alshmcmydaycvgwdhdhzcagzfztecupjikaoouimkijczoiewi hdhzcagzfz
------Answer-----
yes
------Your output-----
no