Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6208 | 张育斌 | 字符串长度判断 | C++ | Accepted | 0 MS | 260 KB | 558 | 2025-01-13 15:46:27 |
#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(s2_num==s1_num) printf("yes"); else printf("no"); return 0; }