{"trustable":false,"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":"MD","content":"给出一个`N∗M`的矩阵`C`,要求构造两个序列`a1,a2,…,an`和`b1,b2,…,bm`, 矩阵的第`i`行元素乘上 `ai`,矩阵的第`j`列元素除以`bj`,最终矩阵的每个元素`Cij∈[L,U]`.\n若可以构造成功,则输出`YES`,否则输出`NO`"}},{"title":"输入格式","value":{"format":"MD","content":"多组数据\n\n对于每组数据:\n- there are four integers in one line, N,M,L,U, indicating the matrix has N rows and M columns, L is the lowerbound and U is the upperbound (1\u0026lt;\u003dN、M\u0026lt;\u003d400,1\u0026lt;\u003dL\u0026lt;\u003dU\u0026lt;\u003d10000).\n- there are N lines, each line includes M integers, and they are the elements of the matrix. "}},{"title":"输出格式","value":{"format":"MD","content":"若可以构造成功,则输出`YES`,否则输出`NO`"}},{"title":"样例输入","value":{"format":"MD","content":"```\n3 3 1 6\n2 3 4\n8 2 6\n5 2 9\n```"}},{"title":"样例输出","value":{"format":"MD","content":"```\nYES\n```"}},{"title":"双倍经验","value":{"format":"MD","content":"## [UVAlive5094](CDN_BASE_URL/problem/UVALive-5094#author\u003dchen_zhe_)"}}]}