In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.

[Q]: [82.044, 68.263, 248.264, 247.879, -45.725]
[A]: [ 0.137  0.114  0.413  0.413 -0.076]


[Q]: [-17.732, 204.999]
[A]: [-0.095  1.095]


[Q]: [81.875, 165.592, 82.027, 171.091, 114.313, 152.209]
[A]:
[0.107 0.216 0.107 0.223 0.149 0.198]