weww
2025-02-03 13:38:19
发布于:陕西
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int huiwen(int n){
int t=n,sum=0;
while(t>0){
sum=sum*10+t%10;
t=t/10;
}
if(sum==n) return true;
else return false;
}
int main(){
int n;
cin>>n;
if(huiwen(n)) cout<<"Yes";
else cout<<"No"
这里空空如也
有帮助,赞一个