Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
128634 | 常钰杰 | 31回文字符串 | C++ | Accepted | 2 MS | 288 KB | 321 | 2025-08-18 17:15:30 |
#include<bits/stdc++.h> using namespace std; int main() { string a; cin >> a; int b; b = a.length() - 1; for(int i = 0; i < b / 2; i++) { if(a[i] != a[b - i]) { cout << "No"; return 0; } } cout << "Yes"; return 0; }