Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
110540 刘佳宇 字符串长度判断 C++ Accepted 1 MS 272 KB 350 2025-02-22 11:43:03

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ char a[150],b[150]; int l1=0,l2=0; int i=0; cin>>a>>b; while(a[i]!='\0'){ l1++; i++; } int j=0; while(b[j]!='\0'){ l2++; j++; } if(l1==l2){ cout<<"yes"; } else{ cout<<"no"; } }