Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4142 | 李宇轩 | 字符串长度判断 | C++ | Accepted | 0 MS | 268 KB | 259 | 2024-08-04 15:12:47 |
#include<iostream> #include<cstring> using namespace std; int main(){ char s1[1000],s2[1000]; int num1,num2; cin>>s1>>s2; num1=strlen(s1); num2=strlen(s2); if(num1==num2){ cout<<"yes"<<endl; }else{ cout<<"no"<<endl; } return 0; }