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

Турниры > CEN111 Homeworks 2013-2015 > задача:


15-FallPr-10. 50808 - Total Distance Traveled

CEN111 Homeworks 2013-2015

Старт: 10.янв.2015 в 10:00:00
Финиш: 10.янв.2015 в 15:00:00
Турнир завершён!
• Турнирная таблица

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

Задачи турнира

• 14-Spr2-20. 50425 - Calculating W...
• 14-Spr2-30. 50445 - Cryptography
• 14-Spr2-50. 50437 - Age Labeling
• 15-FallHW-2. 50821 - Derivative of ...
• 15-FallHW-3. 50822 - Linked List
• 15-FallHW-4. 50823 - Secret Number
• 15-FallHW-5. 50824 - Sum of Group...
• 15-FallHW-6. 50825 - Drawing Polygon
• 15-FallPr-10. 50808 - Total Dist...
• 15-FallPr-50. 50812 - Total Discount...
• 15-FallPr-70. 50814 - Buying Books f...
• 15-FallPr-80. 50815 - Breaking the ...
• 15-FallRE-10. 50853 - Parking Place
• 15-FallRE-20. 50854 - Area of Trian...

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan.

Total Distance Traveled

Your physics professor is having a problem. He wants to see if his odometer is working properly. He has taken notes of traveling speeds and time traveled with that speed.

Question: Calculate and show the total distance traveled.

Input specification
You will be first given the number of input (n) where 0 ≤ n ≤ 5000. Then, in the following n lines, you will be given two integers:

  • The time traveled (in minutes) where the time is between 1 and 400
  • The speed (km per hour): an integer between 0 and 200

Output specification
Show a floating point number with two digits precision.

Sample Input
4
120 80
130 40
35 80
190 60
Sample Output
483.33

Explanation: The car has traveled for (120 minutes) two hours with 80 km per hour (traveled 160 kms). Then for 130 minutes, 40 km per hour, etc.

Time traveledSpeedKms traveled
12080160.0
1304086.667
358046.667
19060190.0
Total distance 483.33



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

www.contester.ru