Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81606 刘慕莀 字符串长度判断 C++ Wrong Answer 1 MS 268 KB 317 2024-07-12 14:45:12

Tests(1/10):


Code:

#include<bits/stdc++.h> using namespace std; char a[151]; char b[151]; int main(){ cin>>a; cin>>b; int a_l=0; int b_l=0; for(int i=0;i<151;i++){ if(a[i]!='\0'){ a_l++; }else{ break; } } if(a_l==b_l){ cout<<"yes"; }else{ cout<<"no"; } return 0; }


Run Info:

------Input------
qsoeaidcsj uwbhmfcfjz
------Answer-----
yes
------Your output-----
no