Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
110541 王煜鑫 字符串长度判断 C++ Time Limit Exceeded 1000 MS 272 KB 341 2025-02-22 11:44:16

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char a[150],b[150]; int lenl=0,lenl2=0; cin>>a>>b; int i=0; while(a[i]!='\0'){ lenl++; i++; } int j=0; while(b[i]!='\0'){ lenl2++; j++; } if(lenl==lenl2){ cout<<"yes"; } else{ cout<<"no"; } return 0; }