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

Разделы > Арифметика > задача:


50417 - Fun Fair

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

Задачи раздела

• 50343 - The number of Ending Zero...
• 50296 - Total Discount Rate
• 50289 - Monthly Allowance
• 50403 - Number of Chairs
• 50408 - Molecules
• 50481 - Car Parking
• 50413 - Valid Permutations
• 50412 - K numbers
• 50417 - Fun Fair
• 50433 - Sum of Cubes
• 50807 - Euro to Leke
• 50871 - Harmonic Mean
• 50521 - Pound to Grams
• 50292 - Average of 4 Marks
• 50432 - Numbers and Squares
• 50510 - What floor are they?
• 50870 - ZScore normalization

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
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