Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
61457 黎瑾萱 字符串长度判断 C++ Accepted 1 MS 272 KB 318 2023-12-09 16:14:40

Tests(10/10):


Code:

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