Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
112165 | 张湘哲 | 字符串长度判断 | C++ | Accepted | 1 MS | 276 KB | 259 | 2025-03-08 16:01:31 |
#include<bits/stdc++.h> using namespace std; int main(){ char s[151],n[151]; cin>>s>>n; int a=0,b=0; while(s[a]!='\0') a++; while(n[b]!='\0') b++; if(a==b) cout<<"yes"; else cout<<"no"; return 0; }