一种作法
2025-08-06 19:14:33
发布于:广东
2阅读
0回复
0点赞
#include <iostream>
#include <string>
using namespace std;
int main() {
int c = 0;
string a,b;
cin >> a;
for (int i =a.size() - 1;i >= 0;i--){
b += a[i];
}
//cout << a << " " << b;
if (a == b) cout << "Yes";
else cout << "No";
return 0;
}
这里空空如也
有帮助,赞一个