先取正,然后取反与之前比较是否相等
判断一个数是否是回文数
http://www.nowcoder.com/questionTerminal/edf5475ef713445f9a040cc37a98a4b7
include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
if(n<0)
n = -n;
string s = to_string(n);
string s1(s);
reverse(s.begin(),s.end());
if(s == s1)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
return 0;
}