Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81629 张之隽 字符串长度判断 C++ Wrong Answer 1 MS 276 KB 336 2024-07-12 14:51:03

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { char s1[151],s2[151]; cin>>s1; cin>>s2; cout<<s1<<s2; int s1_l,s2_l; s1_l=0; s2_l=0; for(int i=0;1<151;i++){ if(s1[i]!='\0'){ s1_l++; } else{ break; } } if(s1_l==s2_l){ cout<<"yes"<<endl; }else cout<<"no"<<endl; return 0; }


Run Info:

------Input------
wlglqarn lgmmi
------Answer-----
no
------Your output-----
wlglqarnlgmmino