HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50079 - Fun Fair

Section problems

• 50049 - Right-most non zero digit in N!
• 50050 - Base Conversion
• 50051 - Number Quadruplets
• 50053 - kth Permutation
• 50070 - Number of Chairs
• 50073 - Missing Number
• 50077 - Valid Permutations
• 50079 - Fun Fair
• 50089 - Sum of Cubes
• 50118 - Car Parking
• 50139 - Multiplication Table - 2
• 50145 - Close City
• 50149 - Albanian Airlines
• 50150 - Divisible by m
• 50159 - Triangular Numbers
• 50162 - Mersenne prime

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