#PCBSAU0000022. Hóa đơn mua hàng (Purchase Receipt)
Hóa đơn mua hàng (Purchase Receipt)
Purchase Receipt
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
A receipt has two items with integer quantity and unit price. Calculate subtotal, fixed 10% VAT and final amount, printing each with two decimals.
Input
One line containing , quantity and price of each item.
Output
Print subtotal, VAT and final amount on three separate lines.
Subtask
- Subtask 1 — 100 points: ; ; VAT 10%.
Example
Input
2 100 1 250
Output
450.00
45.00
495.00
Explanation
Item subtotals are and , giving subtotal , VAT and final amount .