HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


140. 50417 - Fun Fair

Guest
• Review clarifications (1)

Volume problems

• 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 ...
• 140. 50417 - Fun Fair
• 150. 50500 - Find Student
• 260. 50460 - Median of 3 Numbers
• 50292 - Average of 4 Marks
• 001. 51153 - A+B.
• 002. 50348 - Area and Perimeter of ...
• 003. 50349 - Area of a Triangle
• 004. 50350 - Fahrenheit to Celsius
• 010. 50357 - Convert Euros into Dol...

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.
Question by Halil Karimis.

Fun Fair

Task: Primary school teacher with N pupils from 3-A class decide to go to funfair at the weekend. In funfair they want to take a ride on ferris wheel. Ferris wheel can hold up most to K person at one rotation ride. One ferris wheel rotation ride takes M minute. Each student wants to ride ferris wheel twice.

Find out minimum time that teacher have to spend at ferris wheel if all his students will take a ride twice.

Input specification
Get three numbers:

  • K - Maximum number of person that Ferris wheel can hold up.
  • M - Time spended for one Ferris wheel ride.
  • N - Number of pupil.

Output specification
Show one number: total time spended on ferris wheel.

 Sample Input I     Sample Input II     Sample Input III   
 2 4 8
 30 5 12
 3 6 7
 Sample Output I     Sample Output II     Sample Output III   
 32
 10
 36


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

www.contester.ru