| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 132511 | 郝王骏程 | 31回文字符串 | C++ | Accepted | 2 MS | 284 KB | 473 | 2025-10-08 19:01:56 |
#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; string s; cin>>s; a=s.size( ); for(int i=a/2;i>=0;i-- ){ if(s[i]!=s[a-i-1]){ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }