1930 奥运年
Submit solution
Points:
100
Time limit:
1.0s
Memory limit:
32M
Problem types
Allowed languages
C, C++, Java, Python
Description
2008年在我国北京举办过奥运会,所以2008当然是奥运年。那么给你一个年份,你得判断它是否为奥运年呢。奥运会从1896年起,每四年举行一次。当然有那么几届奥运会,因为战争的原因而没有办成,但是,确曾列为奥运年,未来某些年份虽然还不知道能否成功举办,但是同样已经列为奥运年,所以,凡列入奥运会举办年,都是奥运年。
Input
多个年份数据N(1895<N<2095)。
Output
如果输入的是奥运年份,则输出N is the olympic year. 否则输出N is not the olympic year.
Sample
Input
2008
2005
1896
1897
Output
2008 is the olympic year.
2005 is not the olympic year.
1896 is the olympic year.
1897 is not the olympic year.
Comments