{"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":"\u003cscript type\u003d\u0027text/x-mathjax-config\u0027\u003eMathJax.Hub.Config({tex2jax: { inlineMath: [[\u0027$\u0027,\u0027$\u0027]] } }); \u003c/script\u003e\n\u003cscript type\u003d\u0027text/javascript\u0027 src\u003d\u0027https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\u0027\u003e\u003c/script\u003e\n\u003cscript type\u003d\u0027text/javascript\u0027\u003esetTimeout(function(){MathJax.Hub.Queue([\u0027Typeset\u0027, MathJax.Hub, \u0027left_view\u0027]);}, 2000);\u003c/script\u003e\n\u003cdiv class\u003d\"panel_content\"\u003e\n这次的周练实在是太累了,eroengine想就地睡觉。可是有干净的地面和脏的地面。小房间的大小有N*M那么大\n \u003cbr\u003e \n干净的地面的标记为 F\n \u003cbr\u003e \n脏的地面被标记为 R\n \u003cbr\u003e \n现在的eroengine已经很累了,脑子已经转不动了。他只想找到一个最大的矩形空间(毕竟床还是得矩形的不是么)来睡一觉所以让你来帮他找到他想要的空间。\n\u003cbr\u003e\nps:一块地面的占地面积有3个单位\n \u003cbr\u003e \n \u003cbr\u003e \n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cbr\u003e\n第一行输入一个整数K ,代表K组数据\n\u003cbr\u003e\n接下来 表示一个区域的描述\n\u003cbr\u003e\n输入两个正整数 M,N 。 M\u0026lt;\u003d1000 and N\u0026lt;\u003d1000 中间用空格隔开\n\u003cbr\u003e\n然后接下来 的 M 行表示 该区域内每一块小方格的状态\n\u003cbr\u003e\n\u003cbr\u003eF 代表干净的地 \n\u003cbr\u003eR 代表脏的地\n\u003cbr\u003e每一个区域描述完的最后有一个空行\n\u003cbr\u003e\n"}},{"title":"Output","value":{"format":"HTML","content":"对于每一组数据,单独输出一行,表示eroengine睡觉的地面的大小有多少个单位\n \u003cbr\u003e "}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e2\n5 6\nR F F F F F\nF F F F F F\nR R R F F F\nF F F F F F\nF F F F F F\n\n5 5\nR R R R R\nR R R R R\nR R R R R\nR R R R R\nR R R R R\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e45\n0\u003c/pre\u003e"}}]}