[BOJ 13773] Olympic Games

View as PDF

Submit solution

Points: 1
Time limit: 2.0s
Memory limit: 512M

Problem types
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

The Olympic Games in Rio cannot have escaped your attention! 2016 is a summer Olympics year.</p>

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:</p>

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

Comments

There are no comments at the moment.