mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-08 02:13:51 +08:00
Update: Rename folder name to XSMOJ
This commit is contained in:
13
XSMOJ/判断闰年.cpp
Normal file
13
XSMOJ/判断闰年.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include <bits/stdc++.h>
|
||||
using namespace std;
|
||||
int main(){
|
||||
int a;
|
||||
cin >>a;
|
||||
if(a%4==0 && a%100>0 || a%400==0 && a%3200>0){
|
||||
cout <<"Y";
|
||||
}
|
||||
else{
|
||||
cout <<"N";
|
||||
}
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user