stronger


私信TA

用户名:stronger

访问量:17183

签 名:

等  级
排  名 1894
经  验 2523
参赛次数 1
文章发表 22
年  龄 0
在职情况 学生
学  校
专  业

  自我简介:

看看代码就知道了

参考代码:

#include <stdio.h>

#include <stdlib.h>

#define LEAP_YEAR(y) y%4==0&&y%100!=0||y%400==0 ? 1:0

int main()

{

    int x;

    scanf("%d",&x);

    if(LEAP_YEAR(x)==1){

        printf("L");

    }

    else printf("N");

    return 0;

}


 

0.0分

0 人评分

  评论区