练22.1 闰年与平年
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.
说明
大家都知道,每四年一个闰年。按照每四年一个闰年计算,过四百年就会多出大约天,因此规定整百数的年份必须是的倍数才是闰年,这就是通常所说的:四年一闰,百年不闰,四百年再闰。
试编一个程序,输入一个年份,判断是平年还是闰年。
闰年判断:
- 整百年,能被400整除
 - 非整百年,能被4整除
 
输入格式
一行一个年份。
输出格式
输出是平年还是闰年,详情见“样例输出”。
样例
20202020是闰年
【周六9:00】 8月24日作业
- Status
 - Done
 - Problem
 - 13
 - Open Since
 - 2024-8-24 0:00
 - Deadline
 - 2024-9-7 23:59
 - Extension
 - 24 hour(s)