| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81521 | 张黄源 | 字符串长度判断 | C++ | Wrong Answer | 1 MS | 276 KB | 382 | 2024-07-12 14:33:24 |
#include<bits/stdc++.h> using namespace std; int main() { char a[151],b[151]; int f_1,f_2; cin>>a>>b; f_1 = f_2 = 0; for(int i=0;i<151;i++){ if(a[i]!='\0'){ f_1++; }else{ break; } } for(int i=0;i<151;i++){ if(b[i]!='\0'){ f_2++; }else{ break; } } if(a[151]==b[151]) { cout<<"yes"; } else { cout<<"no"; } return 0; }
------Input------
wlglqarn lgmmi
------Answer-----
no
------Your output-----
yes