Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
112174 彭士宝 字符串长度判断 C++ Accepted 1 MS 280 KB 339 2025-03-08 16:21:07

Tests(10/10):


Code:

#include <iostream> #include <string> using namespace std; int main() { string str1, str2; cin >> str1 >> str2; // 输入两个字符串 // 比较两个字符串的长度 if (str1.length() == str2.length()) { cout << "yes" << endl; } else { cout << "no" << endl; } return 0; }