竞赛
考级
JMZ詹总
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c=0; cin>>a; b=a; while(b!=0){ c=c*10+b%10; b/=10; } if(c==a){ cout<<"Yes"; return 0; } cout<<"No"; return 0; }
LS_YZY
???
#include <iostream> using namespace std; int main(){ int n,x=0,c; cin>> n; c=n; while(n>0){ x=x*10+n%10; n/=10; } if(x==c){ cout<<"Yes"; } else{ cout<<"No"; } return 0; }
小瑀毛
༺ཌༀ™☯追光·少年☯™ༀད༻
有事找大号
zsy
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; int i=0,j=s.size()-1; while(i<j){ if(s[i]!=s[j]){ cout<<"No"; return 0; } i++; j--; } cout<<"Yes"; return 0; }
苍耀
共28条