AC
2025-10-19 19:16:49
发布于:浙江
1阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main()
{
string str, ans = "";
cin >> str;
for(int i = str.size() - 1; i >= 0; i--)
ans += str[i];
if(ans == str) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
}

这里空空如也







有帮助,赞一个