| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62541 | 张誉腾 | 字符串相等判断 | C++ | Wrong Answer | 1 MS | 276 KB | 349 | 2023-12-24 11:48:37 |
#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 flag =1; for(int i= 0;i < la;i++){ if(a[i]==b[i]){ flag=0; } } if(flag==1){ cout<<"yes"; }else{ cout<<"no"; } }else{ cout<<"no"; } }
------Input------
9KKt2LEjCIM5UVUI3oG4gMD8 9KKt2LEjCIM5UVUI3oG4gMD8
------Answer-----
yes
------Your output-----
no