竞赛
考级
SJZ
法兰西玫瑰
#include<bits/stdc++.h> using namespace std; int n; int is_pal(int a) { int s=0; while(a) { s=s*10+a%10; a/=10; } return s; } int main() { cin>>n; if(is_pal(n)==n) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
龙猫
亚洲卷王 AK IOI
逍遥骇好=&
majmDZB
#include<cstdio> #include<iostream> #include<cmath> using namespace std; int n[114514]; int hw(int a){ int b,a1; a1=a; while(a1){ b+=a1%10; a1/=10; b*=10; } b/=10; if(b==a)return 1; else return 0; } int main(){ int a; cin>>a; if(hw(a)==1)cout<<"Yes"; else cout<<"No"; return 0; }
准
Zด้้้้้็้้้้้้้็
#include<iostream> using namespace std; // 完成回文数判定 is_pal 函数 bool is_pal(int n) { int m=n; int ans=0; while(m>0) { ans=ans*10+m%10; m/=10; } if(ans==n) return true; return false; } int main() { return 0; }
Voldemort
#include<bits/stdc++.h> using namespace std; bool is_pal(int x){ string s = to_string(x); string rev_s = s; reverse(s.begin(),s.end()); return rev_s == s; } int main() { int n; cin >> n; if(is_pal(n)) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
dfs却一场空
???
毛奕程
简单 难 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
PDC·[徐皓明]
阿基米哲V(^-^)V
黑客_天之神_ZDZL_zsy
罗同学