Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
156861 王培臻 字符串长度判断 C++ Accepted 1 MS 276 KB 244 2026-07-11 11:56:51

Tests(10/10):


Code:

#include<iostream> using namespace std; int main() { string a,s; cin>>a>>s; long long d=0,f=0; while(a[d]!='\0'){ d++; } while(s[f]!='\0'){ f++; } if(d==f){ cout<<"yes"; }else{ cout<<"no"; } return 0; }