Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
156831 万麟峰 字符串长度判断 C++ Accepted 1 MS 276 KB 247 2026-07-11 11:54:26

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string s1,s2; cin>>s1>>s2; int n=0,m=0; while(s1[n]!='\0'){ n++; } while(s2[m]!='\0'){ m++; } if(n==m){ cout<<"yes"; }else{ cout<<"no"; } return 0; }