{"trustable":true,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e给你一个矩阵 C\u003csub\u003eN*M\u003c/sub\u003e,其中每个元素 E 都是正数且不超过1000。问题是,是否存在 N 个数 a1, a2, … an 和 M 个数 b1, b2, …, bm,满足对于每一行 i,将其所有元素乘以 ai,对于每一列 j,将其所有元素除以 bj,经过这些操作后矩阵中的每个元素都在 L 和 U 之间,其中 L 表示下界,U 表示上界。\u003c/div\u003e"}},{"title":"输入","value":{"format":"HTML","content":"有多个测试用例,处理到文件结束为止。\u003cbr\u003e每个测试用例包括两部分。第一部分是一行中的四个整数 N、M、L、U,表示矩阵有 N 行 M 列,L 是下界,U 是上界(1≤N、M≤400,1≤L≤U≤10000)。第二部分是 N 行,每行包含 M 个整数,它们是矩阵的元素。\u003cbr\u003e\u003cbr\u003e"}},{"title":"输出","value":{"format":"HTML","content":"如果有解则输出\"YES\",否则输出\"NO\"。"}},{"title":"示例","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e3 3 1 6\r\n2 3 4\r\n8 2 6\r\n5 2 9\r\n\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eYES\r\n \r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}