#PCBSAU0000001. Bốn phép toán cơ bản (Four Basic Operations)
Bốn phép toán cơ bản (Four Basic Operations)
Four Basic Operations
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given integers with , compute their sum, difference, product and real quotient in that order. The quotient is printed as a Python float, e.g. 4.0. In this training extension, the divisor is a power of two so exact token checking is deterministic.
Input
One line containing integers separated by whitespace.
Output
Print four lines: , , , and using Python default floating-point output.
Subtask
- Subtask 1 — 100 points: ; $b\in{1,2,4,8}.
Example
Input
7 4
Output
11
3
28
1.75
Explanation
With and , the sum is , the difference is , the product is , and the real quotient is . Each result is printed on a separate line.