| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77744 | 邓嘉瑶 | 回文字符串I | C++ | Accepted | 1 MS | 272 KB | 247 | 2024-06-15 11:41:58 |
#include<bits/stdc++.h> using namespace std; int main(){ char a[1000]; scanf("%s", a); int len=strlen(a); for(int i=len-1,j=0;i>=0,j<len;i--,j++){ if(a[i]!=a[j]){ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }