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

Сборники > Beginners > задача:


50310 - Kinetic Energy

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

Задачи сборника

• 040. Student results
• 055. 50355 - Bills of City Water Co...
• 060. 50583 - Numri ma te madhe n...
• 065. 50436 - Pocket Money
• 070. 50439 - Telephone Calls
• 080. 50478 - Letter Grades
• 090. 50422 - Area and Perimeter of...
• 222. 50302 - Paper Scissors Rock
• 50310 - Kinetic Energy
• 50314 - Falling Distance
• 50579 - Numrat pentagonal
• 050. 50568 - Llogaritesi i indeksit te...

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

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

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

Kinetic Energy

In physics, an object that is in motion is said to have kinetic energy. The following formula can be used to determine a moving object's kinetic energy:
   KE = 1/2 mv2

The variables in the formula are as follows: KE is the kinetic energy, m is the object's mass in kilograms, and v is the object's velocity, in meters per second.

Question:
Write a program that accepts mass of an object (in kilograms) and velocity (in meters per second) as arguments. The function should return the amount of kinetic energy that the object has.

Input specification
In the first line, program will get two numbers m (mass) 0< m < 2000 and v (velocity) 0 < v <1000.

Output specification
Print out just one number which is the amount of kinetic energy that the object has.

 Sample Run I  
  5 90

 Sample Output I  
  20250

 Sample Input II  
  20 180

 Sample Output II  
  324000
 Sample Input III  
  0.25 350

 Sample Output III  
  15312.5


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

www.contester.ru