Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118617 | Kevin | 回文字符串I | C++ | Accepted | 1 MS | 264 KB | 248 | 2025-05-06 15:29:10 |
#include<iostream> #include<cstring> char a[1005]; using namespace std; int main(){ gets(a+1); int len=strlen(a+1); for(int i=1;i<=len/2;i++){ if(a[i]!=a[len+1-i]){ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }