| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61453 | 冯纪尧 | 字符串长度判断 | C++ | Accepted | 1 MS | 276 KB | 321 | 2023-12-09 16:10:24 |
#include <iostream> #include <string> using namespace std; bool stringLengthsEqual(const string& s1, const string& s2) { return s1.length() == s2.length(); } int main() { string s1, s2; cin >> s1 >> s2; if (stringLengthsEqual(s1, s2)) { cout << "yes" << endl; } else { cout << "no" << endl; } return 0; }