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

Турниры > IMPC-2014-15 Questions > задача:


0th-2. 50403 - Number of Chairs

IMPC-2014-15 Questions

Старт: 22.ноя.2014 в 15:00:00
Финиш: 22.ноя.2014 в 20:00:00
Турнир завершён!
• Турнирная таблица

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

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

• 0th-1. 50402 - Hello World!
• 0th-2. 50403 - Number of Chairs
• 0th-3. 50763 - Valid Password
• 0th-4. 50404 - Sum of Self Powers
• 0th-5. 50692 - How much money?
• 1st-2. 50483 - Group Total
• 1st-3. 50484 - Number Of Letters
• 1st-4. 50473 - Counting Circles Posit...
• 1st-6. 50485 - Center of gravity of ...
• 2nd-1. 50522 - Multiplication Table - 2

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

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

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

Number of Chairs

Question: Mr. Shehu is preparing for the wedding ceremony of his son. He wants to arrange the event in their garden. But he doesn't have enough tables and chairs at home. He has asked tables and chairs from his neighbors. And thus, they all have different sizes. He wants to write a program that defines the number of chairs that can be used.

Given the width and length of a rectangular table and then the length of a chair, find out how many chairs can fit around the table?

Input specification
You will be given three integers: the width (tw) and length (tl) of the table and the width of a chair (cw) where 15 cm ≤ cw ≤ 40 cm and 9 cm ≤ (tw and tl) ≤ 280 cm
Note: All chairs have the same square shape.

Output specification
Find and show the number of chairs that can be placed around the rectangular table.

 Sample Input I     Sample Output I   
 80 40 18
 12


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

www.contester.ru