#K68572. Sausage Cuts

    ID: 32894 Type: Default 1000ms 256MiB

Sausage Cuts

Sausage Cuts

You are given a sausage of total length \(L\) and are required to make \(n-1\) cuts so that the sausage is divided into \(n\) pieces of equal length (and volume, assuming uniform density). The cut positions are calculated using the formula:

\[ \text{cut}_i = i\times \frac{L}{n} \quad \text{for } i=1,2,\dots,n-1, \]

Your task is to calculate and output these positions.

inputFormat

The input consists of a single line containing two space-separated integers:

  • \(n\): the number of pieces (an integer greater than 1)
  • \(L\): the total length of the sausage (a positive integer)

outputFormat

Output the \(n-1\) cut positions separated by a single space. Each position must be output as a floating point number. The answer will be accepted if each number is within \(10^{-6}\) of the correct value.

## sample
3 10
3.3333333333333335 6.666666666666667