HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


030. 50584 - Total invoice amount

Guest
• Review clarifications (1)

Volume problems

• 022. 50366 - Student Averages (2 G...
• 023. 50437 - Age Labeling
• 024. 50372 - Number Quadruplets
• 025- 2013-Nov-01. 50328 - How far ...
• 026. 50399 - Mobile Base Station
• 026. 50487 - Radius of Inscribed Circle
• 027. 50548 - Albanian Airlines
• 028. 50483 - Group Total
• 030. 50584 - Total invoice amount
• 033. 50588 - Processing the list of n...
• 035. 50573 - Count and Sum
• 040. 50335 - Five Math Operators
• 044. 50597 - Drawing Diamonds
• 045. 50462 - Class Average (3 Gra...
• 050. 50450 - Last Appereance of a ...
• 058. 50574 - Triangular Numbers
• 060. 50362 - Pythagorean Numbers

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