Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2684 邓程允 字符串长度判断 C++ Accepted 0 MS 264 KB 334 2024-01-20 17:21:02

Tests(10/10):


Code:

# include<iostream> using namespace std; int main(){ int len1=0,len2=0; char s1[151],s2[151]; cin>>s1>>s2; while(s1[len1]!='\0'){ len1++; } while(s2[len2]!='\0'){ len2++; } if(len1==len2){ cout<<"yes"; } else{ cout<<"no"; } return 0; }