Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98310 | 黄枳润 | 字符串长度判断 | C++ | Wrong Answer | 1 MS | 272 KB | 387 | 2024-11-18 20:03:26 |
#include<iostream> using namespace std; int main(){ int s=1,c=1; char a[151],b[151]; cin>>a>>b; for(int i=0;i<151;i++){ if(a[i]!='\0') s++; break; } for(int i=0;i<151;i++){ if(b[i]!='\0') c++; break; } if(s==c){ cout<<"yes"; }else{ cout<<"no"; } return 0; }
------Input------
wlglqarn lgmmi
------Answer-----
no
------Your output-----
yes