题解
2025-04-20 10:51:20
发布于:北京
1阅读
0回复
0点赞
#include<iostream>
using namespace std;
bool aa(int n1){
int b=n1;
int s=0;
while(b!=0){
s=s*10+b%10;
b/=10;
}
if(s==n1) return true;
else return false;
}
int main(){
int n1,a=0;
cin>>n1;
if(aa(n1)) cout<<"Yes";
else cout<<"No";
return 0;
}
这里空空如也
有帮助,赞一个