Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62082 李琥博 字符串长度判断 C++ Wrong Answer 1 MS 268 KB 314 2023-12-17 11:19:09

Tests(1/10):


Code:

#include<iostream> using namespace std; int main(){ char a[150],s[150]; int n=0,x=0; scanf("%s %s",a,s); for(int i=0;i<150;i++){ if(a[i]!='\0'){ n++; } } for(int i=0;i<150;i++){ if(s[i]!='\0'){ x++; } } if(n==x){ cout<<"yes"; } else{ cout<<"no"; } return 0; }


Run Info:

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