Run ID:85317

提交时间:2024-07-17 08:57:12

#include<iostream> using namespace std; int main(){ int z,b=0,c; cin>>z; c=z; do{ b = b * 10 + z%10; z=z/10; }while(z!=0); if(c==b){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }#include<iostream> using namespace std; int main(){ int z,b=0,c; cin>>z; c=z; do{ b = b * 10 + z%10; z=z/10; }while(z!=0); if(c==b){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }