| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62687 | 夏轩淇 | 字符串相等判断 | C++ | Accepted | 1 MS | 276 KB | 350 | 2023-12-24 17:47:48 |
#include<bits/stdc++.h> using namespace std; int main(){ char a[1000],b[1000]; int sum=0; cin>>a>>b; int sa=strlen(a); int sb=strlen(b); if(sa!=sb){ cout<<"no"; } else{ for(int i=0;i<sa;i++){ if(a[i]==b[i]){ sum++; } } if(sum==sa){ cout<<"yes"; }else{ cout<<"no"; } } return 0; }