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

Tests(10/10):


Code:

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