Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
156841 刘杨国卿 字符串长度判断 C++ Time Limit Exceeded 1000 MS 268 KB 247 2026-07-11 11:56:19

Tests(0/10):


Code:

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