题目:
代码:
#include<bits/stdc++.h>
using namespace std;
int n,x,a,b;
int main(){
scanf("%d",&n);
x=n;
while(x){
a=x%10;
x/=10;
b=b*10+a;
}
if(b==n) cout<<"yes";
else cout<<"no";
return 0;
}
题目:
代码:
#include<bits/stdc++.h>
using namespace std;
int n,x,a,b;
int main(){
scanf("%d",&n);
x=n;
while(x){
a=x%10;
x/=10;
b=b*10+a;
}
if(b==n) cout<<"yes";
else cout<<"no";
return 0;
}