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

Сборники > Фёдор Меньшиков. Тренировки > задача:


120. 50426 - Calculating Sales

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

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

• 075. 50363 - Class GPA Average
• 080. 50248 - Power of two
• 085. 50333 - Series of Squares
• 090. 50456 - nth Digit of a Number
• 095. 50651 - Largest power of two
• 110. 50288 - Even numbers in even...
• 115. 50425 - Calculating Weekly Pay
• 118. 50514 - Bookkeeping
• 120. 50426 - Calculating Sales
• 125. 50484 - Number Of Letters
• 130. 50440 - Call Center
• 132. 50504 - School contest
• 135. 50392 - How much space
• 136. 50443 - Dajte Express
• 140. 50655 - Plotpjesetueshmeria me 9
• 145. 50656 - Plotpjestueshmeria me 11
• 147. 50553 - I pjestueshem me 2013

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

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

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

Calculating Sales

An online retailer sells five different products whose retail prices are shown in the following table:

Product NumberRetail Price
12.89
24.50
39.98
44.49
56.87

Problem
Write a program that calculates and displays the total retail values of all products sold.

Input specification
You will be given lines of numbers containing two integers. First one represent the Product number and the second one the quantity sold. The end of input is marked with -1. Dont take into consideration products with negative quantity.

Output specification
Show the total retail values as a floating point number which have 2 digit precision after the floating point.

 Sample Input I   
1 1
2 1
3 1
4 1
5 1
-1
 Sample Output I   
28.73


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

www.contester.ru