竞赛
考级
法兰西玫瑰
#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
Creeper
#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; }
张高纶
fufu
#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神
zsy
🐱👤
准
毛奕程
???
#include<iostream> using namespace std; int main(){ int a,b,c=0; cin>>a; if(a%4000||(a%40&&a%100!=0)){ b=a; while(b!=0){ c=c*10+b%10; b/=10; } if(c==a){ cout<<"Yes"; return 0; } cout<<"No"; return 0; } cout<<"No"; return 0; }
LS_YZY
#include<iostream> using namespace std; int main(){ int x,y,z=0; cin>>x; z+=x; y*=0; while(z!=0){ y = 10*y + z%10; z/=10; } if(xy&&(x%40&&x%100!=0||x%400==0)){ cout<<"Yes"; }else{ cout<<"No"; } return 0; }
来c4柠檬了哟