|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|2 초||512 MB||346||124||112||35.669%|
The Olympic Games in Rio cannot have escaped your attention! 2016 is a summer Olympics year.
The modern summer Olympic Games were first held in 1896, and have been held at 4 yearly intervals since then, except during the two world wars (1914 to 1918 and 1939 to 1945). The next games are scheduled to be held in Tokyo in 4 years time.
Input will consist of a list of years, one per line, in the range 1860 to 2030 inclusive. The final year will be 0 – do not process that year.
Output is one line per year. The year is given followed by:
Summer Olympics - if the summer Olympic Games were held, or are scheduled to be held in that year.
Games cancelled - if the summer games should have been held but there was a war.
No city yet chosen - if it is a future summer Olympic year but no city has yet been awarded the games
No summer games - otherwise.
1896 1902 1916 2024 2016 0
1896 Summer Olympics 1902 No summer games 1916 Games cancelled 2024 No city yet chosen 2016 Summer Olympics