| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 130606 | 郑景文 | 字符串长度判断 | C++ | Accepted | 1 MS | 276 KB | 379 | 2025-09-14 14:18:43 |
#include<bits/stdc++.h> using namespace std; int main() { int n=150; char a[n],s[n]; cin>>a>>s; int c=0,e=0; for(int i=0; i<=150; i++) { if(a[i]=='\0') { break; } else { c++; } } for(int i=0; i<=150; i++) { if(s[i]=='\0') { break; } else { e++; } } if(e==c) { cout<<"yes"; } else if(e!=c) { cout<<"no"; } }