HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


030. 50584 - Total invoice amount

Guest
• Review clarifications (1)

Volume problems

• 50312 - Sales Bar Chart
• 50313 - Pattern Displays
• 50316 - Population Bar Chart
• 50336 - Buying Carpets
• 50295 - Weighted Average
• 003. 50358 - Series of Odd Numbers
• 005. 50297 - Divisible By Five
• 012. 50589 - The Number of Eggs Sold
• 030. 50584 - Total invoice amount
• 050. 50450 - Last Appereance of a ...
• 060. 50362 - Pythagorean Numbers
• 060. Problem 2
• 065. 50394 - Water Bills
• 070. 50465 - How many students h...
• 075. 50363 - Class GPA Average
• 085. 50333 - Series of Squares
• 095. 50651 - Largest power of two

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.
Prepared by Ibrahim Mesecan.

Total invoice amount

Shqip

Mr. Alban Shehu runs GSS "Gezer Shoe Store". He wants to prepare a program for his invoices to calculate the total price.

Input specification
There are at least 1 and at most 10000 lines of input ending with a negative number. There are two integer numbers in every line: unitPrice and n.
    where unitPrice is the unit price of the given shoe type and it's 1 ≤ price ≤ 100
    n is the number of shoe pairs for this type and 1 ≤ n ≤ 1000.
The entry ends with a negative number .

Output specification
You will calculate and give one number: the sum of the invoice

Sample Input:
3 5
2 6
-1

Sample Output:
27


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

www.contester.ru