当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
Solve the system of linear equations
subject to
xi ≥ 0, ∀i = 1, 2, …, n.
The input in is the following format with 1 ≤ m, n ≤ 100.
m n a11 a12 … a1n b1 a21 a22 … a2n b2 … … … … … am1 am2 … amn bm
All numbers except m and n are real numbers.
If any solutions exist, output one of them in the following format.
x1 x2 … xn
Otherwise declare that the system is inconsistent by printing “impossible”. An special checker program that admits an absolute error of 10−10 is used to verify your results.
2 3 1 1 0 36 -1 1 -1 4
16 20 0
时间上限 | 内存上限 |
2000 | 131072 |