题解 | #判断闰年#
判断闰年
https://www.nowcoder.com/practice/a7bcbe3cb86f435d9617dfdd20a16714
#include <stdio.h> int main() { int a; scanf("%d",&a); if((a%4==0&&a%100!=0)||a%400==0)//闰年的定义 { printf("yes"); } else { printf("no"); } return 0; }#菜狗的解题#
判断闰年
https://www.nowcoder.com/practice/a7bcbe3cb86f435d9617dfdd20a16714
#include <stdio.h> int main() { int a; scanf("%d",&a); if((a%4==0&&a%100!=0)||a%400==0)//闰年的定义 { printf("yes"); } else { printf("no"); } return 0; }#菜狗的解题#
相关推荐
招聘动态