Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
112835 唐安轩 31回文字符串 C++ Accepted 1 MS 272 KB 437 2025-03-14 18:50:54

Tests(10/10):


Code:

#include<iostream> #include<cstring> using namespace std; int main(){ string tax; cin>>tax; int len = tax.size(); bool flag=true; for(int i=0;i<len/2;++i){ if(tax[i]!=tax[len-i-1]){ flag=0; break; } } if(flag){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } return 0; }