Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2587 | 张宸瑜 | 字符串长度判断 | C++ | Accepted | 0 MS | 264 KB | 383 | 2024-01-13 18:24:02 |
# include<cstdio> # include<iomanip> # include<iostream> using namespace std; int main(){ int a1=0,a2=0; char ch1[151],ch2[151]; cin>>ch1; cin>>ch2; while(ch1[a1]!='\0'){ a1++; } while(ch2[a2]!='\0'){ a2++; } if(a1==a2){ cout<<"yes"; } else{ cout<<"no"; } return 0; }