题解 | #BC55 判断闰年#
判断闰年
https://www.nowcoder.com/practice/a7bcbe3cb86f435d9617dfdd20a16714
#include <stdio.h> int main() { int n; while(scanf("%d", &n) != EOF) { if ((n%400 == 0) || ((n%4==0) && (n%100!=0))) { printf("yes\n"); } else { printf("no\n"); } } return 0; }