Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159693 邓弘锐 31回文字符串 C++ Accepted 1 MS 276 KB 242 2026-09-06 14:39:00

Tests(10/10):


Code:

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