#CCBCHMUOI0000013. Tính tiền món ăn (Snack)
Tính tiền món ăn (Snack)
Snack
Source: beecrowd
Version: Phuoc Hung OJ Extended
Problem Statement
A snack bar offers five item codes with unit prices: 1 costs R 4.50, 3 costs R 2.00, and 5 costs R$ 1.50. Given an item code and quantity, calculate the total price in Brazilian reais.
Input
One line contains integers ma and so_luong, the item code and quantity.
Output
Print one line in the exact format Total: R$ X.YY, with exactly two digits after the decimal point.
Subtasks
-
Subtask 1 (20 points): 1 <= ma <= 2 and 1 <= so_luong <= 10.
-
Subtask 2 (30 points): 1 <= ma <= 4 and 1 <= so_luong <= 100.
-
Subtask 3 (50 points): 1 <= ma <= 5 and 1 <= so_luong <= 1000.
Examples
Example 1
Input
3 2
Output
Total: R$ 10.00
Explanation
Code 3 costs 5.00 each; 2 items cost 10.00, printed with two decimals.
Example 2
Input
2 3
Output
Total: R$ 13.50
Explanation
Code 2 costs 4.50 and 3 items cost 13.50.