| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62550 | 刘济玮 | 字符串相等判断 | C++ | Accepted | 1 MS | 280 KB | 497 | 2023-12-24 11:52:46 |
#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){ cout<<"no"; } else{ int flag = 1; for(int i=0;i<la;i++){ if(a[i] != b[i]){ flag = 0; } } if(flag == 1){ cout<<"yes"; } else{ cout<<"no"; } } return 0; }