Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81548 尚雨钒 字符串长度判断 C++ Wrong Answer 0 MS 280 KB 290 2024-07-12 14:43:26

Tests(0/10):


Code:

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


Run Info:

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