| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 132516 | 黄枳润 | 31回文字符串 | C++ | Accepted | 1 MS | 276 KB | 501 | 2025-10-08 19:04:14 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b=0; string s; cin>>s; a=s.size(); for(int i=a/2;i>=0;i--){ if(s[i]!=s[a-i-1]){ b=1; } } if(b==0){ cout<<"Yes"; }else{ cout<<"No"; } return 0; }