Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155022 李沐阳 回文字符串I C++ Accepted 1 MS 276 KB 276 2026-05-31 12:03:41

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { char a[1001]={}; int e=1,n,c=0; cin>>a; while(a[c]!='\0')c++; for(int i=0;i<c;i++){ if(a[i]!=a[c-1-i]){ e=0; break; } } if(e) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }