| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156890 | 杜禹轩 | 回文字符串I | C++ | Accepted | 3 MS | 280 KB | 275 | 2026-07-11 12:26:24 |
#include<bits/stdc++.h> using namespace std; int main() { int s=0; string a; cin>>a; while(a[s]!='\0'){ s++; } if(s%2==0){ } for(int i=0;i<s/2;i++){ if(a[i]!=a[s-i-1]){ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }