奥运年
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Background
Special for beginners, ^_^
Description
2008年在我国北京举办过奥运会,所以2008当然是奥运年。那么给你一个年份,你得判断它是否为奥运年呢。奥运会从1896年起,每四年举行一次。当然有那么几届奥运会,因为战争的原因而没有办成,但是,确曾列为奥运年,未来某些年份虽然还不知道能否成功举办,但是同样已经列为奥运年,所以,凡列入奥运会举办年,都是奥运年。
Format
Input
多个年份数据N(1895<N<2095)。
Output
如果输入的是奥运年份,则输出N is the olympic year. 否则输出N is not the olympic year.
Sample 1
Input
2008
2005
1896
1802
Output
2008 is the olympic year.
2005 is not the olympic year.
1896 is the olympic year.
1802 is not the olympic year.
Limitation
1s, 1024KiB for each test case.
Source
OPS Original