文章
13
粉丝
25
获赞
2
访问
7.1k
#include<bits/stdc++.h>
using namespace std;
int huiwen(int a)
{
int sum = 0;
int b = a;
while(a>0)
{
sum*=10;
sum+= a % 10;
a /= 10;
}
if(sum == b) return 1;
else return 0;
}
int main()
{
int a;
while(cin>>a){
if(huiwen(a) == 1) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发