| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81529 | 张黄源 | 字符串长度判断 | C++ | Wrong Answer | 1 MS | 276 KB | 384 | 2024-07-12 14:36:34 |
#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!=b) { cout<<"no"; } else { cout<<"yes"; } return 0; }
------Input------
qsoeaidcsj uwbhmfcfjz
------Answer-----
yes
------Your output-----
no