Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
61459 刘宇轩 字符串长度判断 C++ Accepted 1 MS 280 KB 284 2023-12-09 16:15:28

Tests(10/10):


Code:

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