竞赛
考级
法兰西玫瑰
#include <bits/stdc++.h> using namespace std; int main(){ int n,s=0; cin>>n; int p=n; while(p!=0) { s=s*10+p%10; p/=10; } if(sn) { if(n%40&&n%100!=0||n%400==0) {cout<<"Yes"<<endl;return 0; } else{cout<<"No"<<endl;return 0;} } else cout<<"No"<<endl; return 0; }
Voldemort
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if((n%40 && n%100!=0) || n%4000){ int a=n,sum=0; while(a!=0){ sum=sum*10+a%10; a/=10; } if(sum==n){ cout<<"Yes"; }else{ cout<<"No"; } }else{ cout<<"No"; } return 0; }
张高纶
Creeper
#include<bits/stdc++.h> using namespace std; int main(){ long long n,year; cin>>n; int x = 0; int s = n; while(s>0){//判断回文数 x = x*10+s%10; s = s/10; } if(xn&&n%40&&n%100!=0||n%4000==0){//如果是回文数和闰年输出yes cout<<"Yes"; } else{//否则输出no cout<<"No"; } return 0; }
AC神
fufu
黑客_天之神_ZDZL_zsy
🐱👤
准
毛奕程
???