Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
3348 邓小龙 31回文字符串 C++ Accepted 0 MS 264 KB 355 2024-06-01 12:11:07

Tests(10/10):


Code:

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