Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
82250 赵文浚 31回文字符串 C++ Accepted 1 MS 272 KB 388 2024-07-13 10:00:24

Tests(10/10):


Code:

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