Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163370 张宇泽 字符串长度判断 C++ Accepted 1 MS 272 KB 269 2026-10-25 11:42:14

Tests(10/10):


Code:

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