시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 1024 MB | 651 | 501 | 463 | 77.038% |
Your animals have begun producing products, and you’re honestly a little strapped for cash. Since you have far more animal byproducts than you know what to do with, you’ve decided to begin shipping them for extra money. Given the information in your shipping ledger, determine how much money you can expect to make.
The first line will contain a single integer n that indicates the number of data sets that follow. Each data set will start with a single integer x denoting how many items follow. The next x lines consist of a string, and integer, and a floating point number to two decimal places, representing the name of what was sold, the quantity, and the unit price of each item.
For each test case, output the amount of money you expect to make with all of the goods you sold, rounded to two decimal places.
2 3 Eggs 12 0.75 Milk 1 2.00 Feathers 50 .02 2 Cow 1 100.00 Cheese 3 0.54
$12.00 $101.62