Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129660 薛承谦 回文字符串I C++ Accepted 2 MS 276 KB 304 2025-09-01 19:06:58

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ char ch[1000]={}; cin>>ch; int lo=0; bool bo=true; while(ch[lo]){ lo++; } for(int i=0;i<lo/2;i++){ if(ch[i]!=ch[lo-i-1]){ bo=false; break; } } if(bo){ cout<<"Yes"; } else{ cout<<"No"; } return(0); }