# include <stdio.h>
# include <math.h>
# include <string.h>
#define LEAP_YEAR(y) y%4
main()
{
int year;
scanf("%d",&year);
if(year%10!=0)
{
if(LEAP_YEAR(year)==0)
{
printf("L");
}
else
{
printf("N");
}
}
else
{
if(LEAP_YEAR(year)==0&&year%400==0)
{
printf("L");
}
else
{
printf("N");
}
}
}
1039
最新推荐文章于 2024-07-06 16:19:25 发布