#4Easy
Arithmetic mean
Time: 1 s · Memory: 256 MB
- Input and output
Statement
You are given two integers and . Find their arithmetic mean, that is .
Input format
A single line with two integers and ().
Output format
A single number — the mean with exactly 2 digits after the decimal point (for example, 3.50 or -2.00).
Examples
Input
3 4
Output
3.50
Input
-6 2
Output
-2.00
Note
In C++ and Go dividing two integers gives an integer: 7 / 2 is 3. To keep the fractional part, divide by a floating-point number: (a + b) / 2.0.
Printing with 2 digits: Python — print(f"{x:.2f}"), C++ — printf("%.2f\n", x), Go — fmt.Printf("%.2f\n", x).
