#P4642. [BJWC2008] 方程
[BJWC2008] 方程
Description
You are given positive integers:
You are also given pairs of positive integers . For each pair , find a set of non-negative real solutions to the following system of equations:
such that is maximized.
Input Format
The first line contains two integers .
The next lines each contain three positive integers .
Constraints: , .
.
Output Format
Output lines. The -th line corresponds to .
If the system has no solution, output IMPOSSIBLE.
Otherwise, output a real number rounded to five decimal places, representing the corresponding maximum value.
1 2
100 100 10
3 3
99 100
0.30000
IMPOSSIBLE
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号