| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62543 | 胡家豪 | 字符串相等判断 | C++ | Accepted | 1 MS | 276 KB | 375 | 2023-12-24 11:50:43 |
#include <iostream> #include <cstring> using namespace std; int main (){ char a[1001],b[1001]; cin>>a>>b; int la = strlen(a); int lb = strlen(b); if(la == lb){ int w = 1; for(int i = 0;i < la;i++){ if(a[i] != b[i]){ w = 0; } } if(w == 0){ cout<<"no"; }else{ cout<<"yes"; } }else{ cout<<"no"; } return 0; }