提交时间:2021-03-07 11:14:09

运行 ID: 16280

#include<bits/stdc++.h> using namespace std; int main(){ int n,num1,num=0; cin>>n; num1=n; while(n){ num=num*10+n%10; n/=10; } if(num1==num) cout<<"Yes"; else cout<<"No"; return 0; }