{"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":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e\n CCY来到糖果店买糖果,店里面有一个大小m×n商品格,每个格子放有一定数量的糖果,CCY有强迫症,想在这m×n的格子中选择一个x×y的矩阵,然后买掉这个矩阵里面所有的糖果,现在CCY的问题是,他能买到最多的糖果数量为多少。\n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"输入数据的第一行为一个正整数T,表示有T组测试数据。每一组测试数据的第一行为四个正整数m,n,x,y(0\u0026lt;m,n\u0026lt;1000 同时0\u0026lt;x\u0026lt;\u003dm 同时0\u0026lt;y\u0026lt;\u003dn),表示给定的商品格有m行n列。接下来这个矩阵,有m行,每行有n个不大于1000的正整数。"}},{"title":"Output","value":{"format":"HTML","content":"对于每组数据,输出一个整数,表示CCY能买到的糖果数量为多少。"}},{"title":"Sample","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\u003e\u003cpre\u003e1\n4 5 2 2\n3 361 649 676 588\n992 762 156 993 169\n662 34 638 89 543\n525 165 254 809 280\u003c/pre\u003e\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e\u003cpre\u003e2474\u003c/pre\u003e\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}