ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Турниры > Epoka Science Olympiad 2013-2015 > задача:


2013-11Gr-30. 50316 - Population Bar Chart

Epoka Science Olympiad 2013-2015

Старт: 18.мая.2013 в 10:00:00
Финиш: 18.мая.2013 в 15:00:00
Турнир завершён!
• Турнирная таблица

Гость
• Вопросы к жюри (1)

Задачи турнира

• 503013 - DNA
• 50958 - ATM
• 2013-10Gr-10. 50310 - Kinetic Energy
• 2013-10Gr-20. 50311 - Student Line Up
• 2013-10Gr-40. 50313 - Pattern Disp...
• 2013-11Gr-10. 50314 - Falling Distance
• 2013-11Gr-20. 50315 - Pig Latin
• 2013-11Gr-30. 50316 - Populat...
• 2013-11Gr-40. 50317 - Student Line Up
• 2014-10Gr-10. 50424 - Area
• 2014-10Gr-20. 50417 - Fun Fair
• 2014-10Gr-30. 50418 - Student ave...
• 2014-10Gr-40. 50429 - Secret Message
• 2014-11Gr-10. 50430 - ATM
• 2014-11Gr-20. 50420 - Teachers Si...
• 2014-11Gr-30. 50431 - Sultan's Game

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Prepared by Halil Karimis.

Population Bar Chart

Question:
Write a program that produces a bar chart showing the population growth of Prairieville, a small town in the Midwest, at 50-year intervals during the past 100 years.

The program will get the population for the years 1900, 1950, and 2000 from the user. For each year, it should display the year and a bar consisting of one asterisk for each 1,000 people.

Input specification
You will be given three integers in three lines representing the population (p) in the years 1900, 1950 and 2000 where 0 < p < 10000

Output specification
Print out three lines. Every line will contain the year followed by a space and proper number of asterisks.
Note: The population is rounded to the nearest 1,000 people.

Sample Run I  
2800
4560
6220

Sample Output I  
1900 ***
1950 *****
2000 ******

Sample Input II  
5700
3200
4500

Sample Output II  
1900 ******
1950 ***
2000 *****


Для отправки решений необходимо выполнить вход.

www.contester.ru