第25868题 单选
补全判断年份是否为闰年的代码中的条件表达式

下列代码用于判断年份是否为闰年,请在横线处填上相应代码。闰年的判断规则是:能被400整除或者能被4整除但不能被100整除。

#闰年判断
N = int(input("请输入年份:"))
if ____________:
    print(f"{N}年是闰年")
else:
    print(f"{N}年不是闰年")
A

N % 400 == 0 or N % 4 == 0 and N % 100 != 0

B

N % 400 == 0 and N % 4 == 0 and N % 100 != 0

C

N % 400 == 0 or N % 4 == 0 or N % 100 != 0

D

N % 400 == 0 and N % 4 == 0 or N % 100 != 0