| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146267 | 李折曦 | 回文字符串I | C++ | Accepted | 1 MS | 272 KB | 256 | 2026-01-27 15:06:55 |
#include<bits/stdc++.h> using namespace std; int main (){ char a[1000]; int n=0; cin>>a; while(a[n]!='\0'){ n++; } for(int i = 0;i<n/2;i++){ if(a[i]!=a[n-1-i]){ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }