Run ID:141144

提交时间:2025-12-21 12:05:11

#include<bits/stdc++.h> using namespace std; int main(){ char q,w,e,r,t,z=0,n=0; cin>>q>>w>>e>>r>>t; cout<<t<<r<<e<<w<<q; z=q+w*10+e*100+r*1000+t*10000; n=t+r*10+e*100+w*1000+q*10000; if(z==n){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }