{"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正方形和矩形深深地吸引着著名的荷兰画家皮特·蒙德里安。一天晚上,在他创作了“厕所系列”中的绘画之后(他不得不用厕纸来画,因为他所有的纸都被正方形和矩形填满了),他梦见用宽度为2、高度为1的小矩形以不同的方式填满一个大矩形。\u003cbr\u003e\u003cbr\u003e\u003ccenter\u003e\u003cimg style\u003d\"max-width:100%;\" src\u003d\"CDN_BASE_URL/a69ef5c30510ec04cb54bbf8e563a228?v\u003d1712904593\"\u003e\u003c/center\u003e\u003cbr\u003e\u003cbr\u003e作为这方面的专家,他一眼就看出他需要一台计算以整数值为尺寸的大矩形可以被填充的方式数量的计算机。帮助他,这样他的梦想就不会变成噩梦!\u003cbr\u003e\u003cbr\u003e\u003ccenter\u003e\u003cimg style\u003d\"max-width:100%;\" src\u003d\"CDN_BASE_URL/c6a85959b29e48872911a81e7b20492d?v\u003d1712904593\"\u003e\u003c/center\u003e\u003cbr\u003e\u003c/div\u003e"}},{"title":"输入","value":{"format":"HTML","content":"输入文件包含多个测试用例。每个测试用例由两个整数组成:大矩形的高度h和宽度w。输入以h\u003dw\u003d0结束。否则,1≤h,w≤11。\u003cbr\u003e"}},{"title":"输出","value":{"format":"HTML","content":"对于每个测试用例,输出给定矩形可以用2乘1的小矩形填充的不同方式的数量。假设给定的大矩形是有方向的,即对称铺砌要计算多次。\u003cbr\u003e"}},{"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\u003e1 2\r\n1 3\r\n1 4\r\n2 2\r\n2 3\r\n2 4\r\n2 11\r\n4 11\r\n0 0\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1\r\n0\r\n1\r\n2\r\n3\r\n5\r\n144\r\n51205\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}