delete pics to save space
This commit is contained in:
17
history_source/信息学奥赛一本通/1.3.7.cpp
Normal file
17
history_source/信息学奥赛一本通/1.3.7.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include<cstdio>
|
||||
using namespace std;
|
||||
bool isr(int n)
|
||||
{
|
||||
if(n%400==0) return 1;
|
||||
if(n%100==0) return 0;
|
||||
if(n%4==0) return 1;
|
||||
return 0;
|
||||
}
|
||||
int main()
|
||||
{
|
||||
int n;
|
||||
scanf("%d",&n);
|
||||
printf("%c\n",isr(n)?'Y':'N');
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user