Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129550 王梓轩 回文字符串I C++ Accepted 2 MS 280 KB 291 2025-08-28 11:05:42

Tests(10/10):


Code:

#include<iostream> #include<cstring> using namespace std; int main() { char a[7891]; cin>>a; int len=strlen(a); for(int i=0,j=len-1;i<len,j>=0;i++,j--) { if(a[i]==a[j]) { continue; } else { cout<<"No"; return 0; } } cout<<"Yes"; return 0; }