竞赛
考级
#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; }
AndyEggy
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 x; cin>>x; if(x%40&&x%100!=0||x%4000){ cout<<"Y"; } else{ cout<<"N"; } return 0; }
猫四月
#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a%40 and a%100!=0)cout<<'Y'; else if(a%4000)cout<<'Y'; else cout<<'N'; return 0; }
134****7468
#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; }
132****6705
#include <bits/stdc++.h> 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; }
DUST
#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; }
我不会C++
a = int(input()) if (a%4 == 0 and a%100 != 0) or (a%400 == 0): print("Y") else : print("N")
复仇者_龍乄
彤
#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; }
背刺王冥河
#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a%40&&a%100!=0||a%4000) cout<<"Y"; else cout<<"N"; }
名字一共八个字符
135****8135
AC
num=int(input()) if num % 4==0 and num % 100 != 0: print("Y") elif num % 100 == 0 and num % 400 == 0: print("Y") else: print('N')
151****9879
共105条