Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81636 尚雨钒 字符串长度判断 C++ Wrong Answer 1 MS 276 KB 326 2024-07-12 14:52:16

Tests(1/10):


Code:

#include <iostream> #include <cstring> using namespace std; int main() { char k[151],s[151]; int k_1,s_1; cin>>k>>s; k_1=strlen(k); s_1=strlen(s); for(int i=0; i<151; i++) { if(k[i]!='\0') { k_1++; } else { break; } } if(k_1!=s_1){ cout<<"no"; }else{ cout<<"yes"; } return 0; }


Run Info:

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