Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
115632 | 张智博 | 31回文字符串 | C++ | Accepted | 1 MS | 280 KB | 370 | 2025-04-01 21:21:40 |
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int l = 0; int r = s.length() - 1; while (l < r) { if (s[l] != s[r]) { cout << "No" << endl; return 0; } l++; r--; } cout << "Yes" << endl; return 0; }