当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

3477:System of Linear Equations

Special Judge 特殊评判
题目描述

Solve the system of linear equations

__poj_jax_start__\begin{pmatrix}a_{11}&a_{12}&\cdots&a_{1n}\\a_{21}&a_{22}&\cdots&a_{2n}\\\vdots&\vdots&\ddots&\vdots\\a_{m1}&a_{m2}&\cdots&a_{mn}\end{pmatrix}\begin{pmatrix}x_1\\x_2\\\vdots\\x_n\end{pmatrix}=\begin{pmatrix}b_1\\b_2\\\vdots\\b_m\end{pmatrix}__poj_jax_end__

subject to

xi ≥ 0, ∀i = 1, 2, …, n.

输入解释

The input in is the following format with 1 ≤ m, n ≤ 100.

mn
a11a12…a1nb1
a21a22…a2nb2
……………
am1am2…amnbm

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

该题目是Virtual Judge题目,来自 北京大学POJ

源链接: POJ-3477

最后修改于 2020-10-29T07:02:33+00:00 由爬虫自动更新

共提交 0 次

通过率 --%
时间上限 内存上限
2000 131072