| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152089 | 黄俊然 | 字符串包含判断 | C++ | Wrong Answer | 1 MS | 276 KB | 719 | 2026-04-19 15:32:53 |
#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; int s=0,f=0,f1=0; getline(cin,a); getline(cin,b); for(int i=0;i<a.length();i++){ for(int j=0;j<b.length();j++){ f=0; if(a[i]==b[j]){ f=1; s++; if(s==b.length() && f1==1){ cout<<"yes"; return 0; } f1=1; } } } cout<<"no"; return 0; }
------Input------
fdcdgtofze dgtf
------Answer-----
no
------Your output-----
yes