HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


048. 50403 - Number of Chairs

Guest
• Review clarifications (4)

Volume problems

• 51031 - Convert from Hex to Dec
• 51030 - Number of Right Triangles
• 005. 50797 - Nr of Missing Guests
• 007. 50280 - Division
• 028. 50521 - Pound to Grams
• 034. 50502 - Welcome Andi - 1
• 042. 50798 - Passing the course
• 045. 50391 - Cinema Tickets
• 048. 50403 - Number of Chairs
• 052. 50503 - Welcome Andi - 2
• 053. 50501 - The Highest Average
• 062. 50402 - Hello World!
• 063. 50547 - Close Pair
• 068. 50581 - The roots of a quadrati...
• 100. 50532 - Close City
• 120. 50511 - Class Average
• 130. 50416 - Placing Dominoes on ...

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
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