Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134078 刘益梵 字符串长度判断 C++ Accepted 1 MS 272 KB 297 2025-10-25 16:23:59

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char str[1000]; char h[1000]; int main() { cin>>str;//字符数组可以以字符串形式读入和输出 cin>>h; int len = strlen(str);//字符数组求长度 int c = strlen(h); if(len==c) cout<<"yes"; else cout<<"no"; return 0; }