RYIP在线题库
设为首页
|
加入收藏
习题
分类
状态
排名
RYIP竞赛
登录和注册
首 页
>
习题练习
> 提交
RYIP在线题库
题目分类
提交状态
做题排名
RYIP竞赛
Problem1749--闰年和平年
1749: 闰年和平年
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MB
Solved: 128
Submit: 257
Statistics
【 Description 】
输入一个年份,判断该年份是闰年还是平年,是闰年输出“leap year”,是平年输出“normal year”
闰年口诀:1、四年一闰,百年不闰;
2、四百年再闰。
【 Input 】
一行,一个整数n,表
示某个年份
【 Output 】
一行,如果是闰年,屏幕上输出“leap year”
,如果是平年,屏幕上输出“normal year”
【 Sample Input 】
2000
【 Sample Output 】
leap year
【 Source/Category 】
TW
if语句