Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
82249 石茂诤 31回文字符串 C++ Accepted 1 MS 272 KB 226 2024-07-13 09:59:42

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string a; getline(cin,a); for(int i=1;i<=a.length();i++){ if(a[i]!=a[a.length()-1-i]){ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }