Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
156923 邓弘锐 回文字符串I C++ Accepted 1 MS 276 KB 281 2026-07-11 14:50:50

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char a[1005]; int main() { int sum=0; cin>>a; int len=strlen(a); for(int i=0;i<=len/2;i++){ if(a[i]!=a[len-i-1]){ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }