#include<stdio.h>
#define LEAP_YEAR(y) (y%400==0||(y%4==0&&y%100!=0))?'L':'N'
int main()
{
int y;
char a;
scanf("%d",&y);
if(y!=0)
{
a=LEAP_YEAR(y);
printf("%c",a);
}
return 0;
}
0.0分
0 人评分
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:648 |
哥德巴赫曾猜测 (C语言代码)浏览:2352 |
愚蠢的摄影师 (C++代码)浏览:938 |
C二级辅导-求偶数和 (C语言代码)浏览:674 |
复数求和 (C语言代码)浏览:929 |
整数平均值 (C语言代码)浏览:787 |
简单的a+b (C语言代码)浏览:631 |
简单的a+b (C语言代码)浏览:830 |
小O的乘积 (C语言代码)浏览:1016 |
1392题解(大数相加)浏览:604 |