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

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


50314 - Falling Distance

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

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

• 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.

Falling Distance

Question:
When an object is falling, the following formula can be used to determine the distance the object falls in a specific time period:

  d = 1/2 gt2

The variables in the formula are as follows:

  • d is the distance in meters,
  • g is a constant (9.8), and
  • t is the amount of time in seconds, that the object has been falling.

Question:
Write a program that accepts falling time of an object in seconds. Your program should contain a function to calculate the result and the function should return the distance in meters, that the object has fallen during that time interval.

Input specification
In the first line, program will get a number t (time) 0 < t <1000.

Output specification
Print out just one floating point number which is the distance that the object has fallen through the given time interval.

Sample Run I  
  4

Sample Output I  
78.4

Sample Input II  
  7

Sample Output II  
240.1
Sample Input III  
  90

Sample Output III  
39690


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

www.contester.ru