竞赛
考级
不建议用c++自带函数写
哈
#include<bits/stdc++.h> using namespace std; int main(){ cout<<"No"; return 0; }
爱学c++(有必回关)(有好比赞
#include<bits/stdc++.h> using namespace std; const int s=1e8+10; void f(int z){ int t=0,x=z; while(x>0){ t=t*10+x%10; x/=10; }if(t==z){ cout<<"Yes"; }else{ cout<<"No"; } } int main(){ int n; cin>>n; f(n); return 0; }
提交答案之后,这里将显示提交结果~