Type: Default 1000ms 256MiB

闰年

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

众所周知,二月一般有 28 天,在闰年中,二月则有 29 天。如果一年的年份可以被 4 整除且不能被 100 整除,或能被 400 整除,则该年为闰年。现在输入一个年份,请判断其是否是闰年。

输入输出格式

输入格式

输入一个整数 x,为年份。

输出格式

输出一行一个字符串,如果其为闰年,输出 "Yes",否则输出 "No"。(不含引号)

样例输入输出

样例 1

  • 输入​:
2024
  • 输出​:
Yes

备注

  • 年份范围:1000 ≤ x ≤ 2024

相关知识点

  • 语言基础:选择结构(条件判断)。

B班第六天测试

Not Attended
Status
Done
Rule
Ledo
Problem
13
Start at
2025-7-26 19:00
End at
2025-7-26 21:00
Duration
2 hour(s)
Host
Partic.
9