Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129545 葛屹阳 字符串长度判断 C++ Accepted 2 MS 272 KB 359 2025-08-28 10:20:02

Tests(10/10):


Code:

#include<iostream> using namespace std; int a[50] [50]; int main() { char a[155],b[155]; cin>>a>>b; int len1=0,len2=0; for(int i=0;a[i]!='\0';i++) { len1++; } for(int i=0;b[i]!='\0';i++) { len2++; } if(len1==len2) { cout<<"yes"; } else { cout<<"no"; } return 0; }