#B2129. Compute Expression m Using Function and Procedure

    ID: 11211 Type: Default 1000ms 256MiB

Compute Expression m Using Function and Procedure

Compute Expression m Using Function and Procedure

Given three integers a, b, and c, compute the value of
\( m = \frac{\max(a, b, c)}{\max(a+b, b, c) \times \max(a, b, b+c)} \)

You are required to implement the computation of the maximum of three numbers, \(\max(x,y,z)\), in two different ways: using a function and using a procedure. The function should return the maximum value while the procedure should perform the task without returning a value (for example, by updating a variable or similar mechanism). Use these implementations appropriately to calculate and output m.

inputFormat

The input consists of a single line containing three integers a, b, and c separated by spaces.

outputFormat

Output the computed value of m. It is guaranteed that the denominators in the expression are non-zero.

sample

1 2 3
0.2