RYIP在线题库
首 页   >   习题练习   >   提交
Problem1065--闰年判断

1065: 闰年判断

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

【 Description 】

给定一个正整数 n 表示年份,判断该年是否为闰年,是闰年输出 “yes”,不是闰年输出 “no”。
闰年口诀:1、四年一闰,百年不闰;
                 2、四百年再闰。

【 Input 】

一个正整数 n

【 Output 】

按题目要求输出

【 Sample Input 】

2014

【 Sample Output 】

no

【HINT】

数据范围:
 n 在 int 范围内。

【 Source/Category 】