判断闰年
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.
Description
输入一个年号,判断它是否是闰年.
Input Format
一个整数。表示年份。
Output Format
如果是闰年,输出"Leap Year!" ; 如果不是,输出"Common Year!".
Sample
input
2004
output
Leap Year!
Hint
时间限制:
空间限制:
注释
判断闰年的算法是:如果此年号能被400整除, 或者它能被4整除而不能被100整除,就是闰年。
20200906-贪心基础练习
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 11
- Start at
- 2020-9-6 13:37
- End at
- 2020-9-26 13:37
- Duration
- 480 hour(s)
- Host
- Partic.
- 17