Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163408 何兴驰 回文字符串I C++ Accepted 1 MS 280 KB 253 2026-10-25 11:58:55

Tests(10/10):


Code:

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