回文串(典型题)
2025-07-05 16:45:32
发布于:浙江
#include<bits/stdc++.h>
using namespace std;
int main(){
string s,S;
cin >> s;
int len=s.size()
for (int i = len-1;i>=0;i--){
S+=i;
}if (s==S){
cout << "Yes";
}else{
cout << "No";
}return 0;
}
这里空空如也
有帮助,赞一个