#C7057. Expected Length of Encoded Sequence

    ID: 50886 Type: Default 1000ms 256MiB

Expected Length of Encoded Sequence

Expected Length of Encoded Sequence

You are given t queries. Each query consists of two integers, M and N. However, the answer for each query is determined solely by M using the formula: \(L = 2M\) where \(L\) is the expected length of the encoded sequence.

Your task is to compute the expected length for each query and output the result as a floating point number with one decimal place.

Note: Although each query provides two integers, the value of N is provided for compatibility and is not used in the formula.

inputFormat

The input is read from standard input (stdin) and has the following format:

  • The first line contains an integer t representing the number of queries.
  • The next t lines each contain two space‐separated integers, M and N.

outputFormat

For each query, output one line containing the expected length of the encoded sequence as a floating-point number with exactly one decimal place. The outputs should be printed to standard output (stdout).

## sample
2
5 3
8 4
10.0

16.0

</p>