| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154407 | 李昱龙 | 回文字符串I | C++ | Accepted | 1 MS | 272 KB | 290 | 2026-05-30 13:49:13 |
#include<bits/stdc++.h> using namespace std; char a[1001],b[1001]; int main(){ cin>>a; int len=strlen(a); for(int i=len-1;i>=0;i--){ b[len-1-i]=a[i]; } int x=strcmp(a,b); if(x==0){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } return 0; }