Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96348 | Kevin | 31回文字符串 | C++ | Accepted | 1 MS | 260 KB | 251 | 2024-11-05 16:33:36 |
#include<bits/stdc++.h> using namespace std; const int n=1005; char a[n]; int main(){ gets(a); int len=strlen(a); for(int i=0,s=len-1;i<=len/2;i++,s--){ if(a[i]!=a[s]){ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }