#28750: C解 那有D嗎?


thelazysong0428@gmail.com (黃國風)

學校 : 不指定學校
編號 : 179137
來源 : [218.166.0.33]
最後登入時間 :
2022-01-03 18:55:55

#include <stdio.h>
main () 
{
int a;
while(scanf("%d",&a) != EOF) 
{
if ((a & 3) == 0 && ((a % 25) != 0 || (a & 12) == 0))
printf("閏年\n");
else
printf("平年\n");
}
return 0;
}