Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
98311 黄枳润 字符串长度判断 C++ Accepted 1 MS 280 KB 415 2024-11-18 20:04:50

Tests(10/10):


Code:

#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++; else break; } for(int i=0;i<151;i++){ if(b[i]!='\0') c++; else break; } if(s==c){ cout<<"yes"; }else{ cout<<"no"; } return 0; }