begin(a)指向数组a的第一个元素,end(a)指向数组a最后一个元素之后的一个元素。
#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main() {
string a;
cin >> a;
string b = a;
reverse(b.begin(), b.end());
if (a == b) cout << "yes" << endl;
else cout << "no" << endl;
return 0;
}