题解
2025-10-24 22:25:00
发布于:浙江
0阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
/if(n==0){
cout<<"No";
return 0;
}0在这里被归为回文数了/
int z=0,m=n;
while(n>0){
int x=n%10;
z=z*10+x;
n/=10;
}
if(z==m)cout<<"Yes";
else cout<<"No";
return 0;
}
这里空空如也






有帮助,赞一个