Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88559 陈昊然 字符串相等判断 C++ Wrong Answer 1 MS 276 KB 333 2024-08-19 12:06:30

Tests(3/10):


Code:

#include<bits/stdc++.h> using namespace std; char c[1001],q[1001]; int b=-2e9,a,p; int main(){ cin>>c>>q; int n=strlen(c),d=strlen(q); if(n!=d){ cout<<"no"; return 0; } for(int i=0;i<=n-1;i++){ if(c[i]==q[i]){ i++; }else{ cout<<"no"; return 0; } } cout<<"yes"; return 0; }


Run Info:

------Input------
K4p162FM6v64lze81Ib9bau8kSPE86E6GQWofvjJ4SP8i00dr4EiES410zq6gxkeDd K4p162FM6v64lze81Ib9bau8kSPE86E6GQWofvjJ4SP8i00dr4EiES410zq0gxkeDd
------Answer-----
no
------Your output-----
yes