竞赛
考级
#include<iostream> using namespace std; int main(){ int n; cin >> n; if(n % 4 == 0 && n % 100 != 0 || n % 400 == 0){ cout << "Y"; } else cout << "N"; return 0; }
dfs却一场空
#include<iostream> using namespace std; int main(){ int year; cin>>year; if((year%4 == 0 && year%100 != 0) || year%400 == 0){ cout<<"Y"; } else{ cout<<"N"; } return 0; }
oych
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; n%40 && n%100!=0 || n%4000 ? cout<<"Y" : cout<<"N"; return 0; }
皮蛋架枪我下包
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a/4!=0&&a/400!=0){ cout<<"Y"; } else{ cout<<"N"; } }
菜
#include<iostream> using namespace std; int main(){ int year; cin>>year; if(year%4 == 0 && year%100 != 0 || year%400 == 0){ cout<<"Y"<<endl; } else{ cout<<"N"<<endl; } return 0; }
醉词意
#include <iostream> using namespace std; int main(){ int year; cin >> year; if (year%40 and year%100!=0 or year%4000){ cout << "Y"; }else{ cout << "N"; } return 0; }
皮皮虾|AndyDrSt
suzifeng
#include<iostream> using namespace std; int main(){ int year; cin>>year; if(year%4 == 0 && year%100 != 0 || year%400 == 0){ cout<<"Leap Year"<<endl; } else{ cout<<"Common Year"<<endl; } return 0; } 斜体文本
骗分过样例,暴力出奇迹(互关)
#include<bits/stdc++.h> using namespace std; int main() { int year; cin>>year; if((year%4 == 0 && year%100 != 0)||(year%400 == 0)){ cout<<"Y"<<endl; } else{cout<<"N"<<endl;} return 0; }
137****9801
#include <iostream> using namespace std; int main() { int a; std::cin >> a; if (a % 100 != 0) { }
133****1302
复仇者_新上线小白✨
#include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; if(a%40&&a%100!=0||a%4000){ cout<<"Y"; } else{ cout<<"N"; } return 0; }
冥王之眼_msc_MC_Him
#include<bits/stdc++.h> using namespace std; int main(){ int year; //建立一个变量,名叫“year” cin>>year; if(year%4 == 0 && year%100 != 0 || year%400 == 0){ //大家最喜欢的阶段,判断条件 cout<<"Y"<<endl; //如果符合条件,就输出“Y” } else{ cout<<"N"<<endl; //如果不符合,就输出“N” } return 0; }
139****9755
我勒个豆,1900年是闰年吗?这么大的测试的错误AGGO你怎么。。。 闰年判定规则 公历闰年的判定遵循以下原则: 普通年份:能被4整除的年份是闰年(如2004年)。 整百数年份:必须能被400整除才是闰年(如2000年是闰年,1900年则不是)。
.
a = int(input()) if a%4 == 0 and a % 100 != 0 or a%400 == 0: print("Y") else: print("N")
130****2617
189****1559
#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a%40&&a%100!=0||a%4000){ cout<<"Y"; } else cout<<"N"; return 0; }
159****3231
#include <iostream> using namespace std; int main(){ int a; cin >> a; if (a % 4==0 && a % 100 != 0 || a%400 ==0){ cout <<"Y"; }else{ cout <<"N"; } return 0; }
∴CJL🤡🤡
CEGO.txy
#include <iostream> using namespace std; int main (){ int a; cin >> a; if (a % 4 == 0 && a % 100 != 0 || a % 400 == 0){ cout << "Y" << endl; } else { cout << "N" << endl; } return 0; }
胡文博
共134条