Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6201 柯宇希 字符串长度判断 C++ Accepted 0 MS 268 KB 610 2025-01-13 15:42:58

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char s1[151],s2[151]; cin>>s1>>s2; int s1_num=0,s2_num=0; int i=0; while(s1[i]!='\0'){ s1_num++; i++; } i=0; while(s2[i]!='\0'){ s2_num++; i++; } if(s1_num==s2_num){ cout<<"yes"<<endl; } else{ cout<<"no"<<endl; } return 0; }