| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62671 | 段文昊 | 字符串相等判断 | C++ | Accepted | 1 MS | 276 KB | 359 | 2023-12-24 17:29:42 |
#include<bits/stdc++.h> using namespace std; int main() { int mx=0; char a[1001],b[1001]; cin>>a>>b; int n=strlen(a); int s=strlen(b); if(n!=s){ cout<<"no"; } else if(n==s){ for(int i=0;i<n;i++){ if(a[i]==b[i]){ mx++; } } if(mx==n && mx==s){ cout<<"yes"; }else{ cout<<"no"; } } return 0; }