Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
122847 杜春雨 字符串包含判断 C++ Accepted 1 MS 276 KB 709 2025-06-21 16:23:29

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ string a,b; cin>>a>>b; int x=a.length(); for(int i=0;i<x;i++){ if(a[x]=b[0]){ int f=1; for(int j=i,k=0;k<b.length();j++,k++){ if(a[j]!=b[k]){ f=0; break; } } if(f){ cout<<"yes"<<endl; return 0; } } } cout<<"no"<<endl; return 0; }