{"trustable":true,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\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 type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e爱丽丝有一只可爱的猫。为了让她的猫保持健康,爱丽丝想要为她的猫设计一段锻炼步行路线!\u003c/p\u003e\n\u003cp\u003e起初,爱丽丝的猫位于无限网格的一个单元格$$$(x,y)$$$中。根据爱丽丝的理论,猫需要移动:\u003c/p\u003e\n\u003cul\u003e\n \u003cli\u003e向左移动 $$$a$$$ 步:从 $$$(u,v)$$$ 到 $$$(u-1,v)$$$;\u003c/li\u003e\n \u003cli\u003e向右移动 $$$b$$$ 步:从 $$$(u,v)$$$ 到 $$$(u+1,v)$$$;\u003c/li\u003e\n \u003cli\u003e向下移动 $$$c$$$ 步:从 $$$(u,v)$$$ 到 $$$(u,v-1)$$$;\u003c/li\u003e\n \u003cli\u003e向上移动 $$$d$$$ 步:从 $$$(u,v)$$$ 到 $$$(u,v+1)$$$。\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e注意移动可以以\u003cspan class\u003d\"tex-font-style-bf\"\u003e任意顺序\u003c/span\u003e进行。例如,如果猫需要向左移动 $$$1$$$ 步,向右移动 $$$3$$$ 步和向下移动 $$$2$$$ 步,那么右、下、左、右、右、下的路线是有效的。\u003c/p\u003e\n\u003cp\u003e然而,爱丽丝担心她的猫如果远离她可能会迷路。因此,她希望她的猫\u003cspan class\u003d\"tex-font-style-bf\"\u003e始终\u003c/span\u003e在区域$$$[x_1,x_2]\\times [y_1,y_2]$$$内,即对于每个猫的位置$$$(u,v)$$$,都满足$$$x_1 \\le u \\le x_2$$$和$$$y_1 \\le v \\le y_2$$$。\u003c/p\u003e\n\u003cp\u003e另外,注意猫可以多次访问同一个单元格。\u003c/p\u003e\n\u003cp\u003e你能帮助爱丽丝找出是否存在满足她要求的步行路线吗?\u003c/p\u003e\n\u003cp\u003e形式上,步行路线应当包含恰好$$$a+b+c+d$$$个单位移动(向左$$$a$$$、向右$$$b$$$、向下$$$c$$$、向上$$$d$$$)。爱丽丝可以以\u003cspan class\u003d\"tex-font-style-bf\"\u003e任意\u003c/span\u003e顺序进行移动。她当前的位置$$$(u, v)$$$应当\u003cspan class\u003d\"tex-font-style-bf\"\u003e始终\u003c/span\u003e满足约束条件:$$$x_1 \\le u \\le x_2$$$,$$$y_1 \\le v \\le y_2$$$。起点为$$$(x, y)$$$。\u003c/p\u003e\n\u003cp\u003e你需要独立回答$$$t$$$个测试案例。\u003c/p\u003e"}},{"title":"输入","value":{"format":"HTML","content":"\u003cp\u003e第一行包含一个整数$$$t$$$($$$1 \\le t \\le 10^3$$$)— 测试案例的数量。\u003c/p\u003e\n\u003cp\u003e每个测试案例的第一行包含四个整数$$$a$$$、$$$b$$$、$$$c$$$、$$$d$$$($$$0 \\le a,b,c,d \\le 10^8$$$、$$$a+b+c+d \\ge 1$$$)。\u003c/p\u003e\n\u003cp\u003e测试案例的第二行包含六个整数$$$x$$$、$$$y$$$、$$$x_1$$$、$$$y_1$$$、$$$x_2$$$、$$$y_2$$$($$$-10^8 \\le x_1\\le x \\le x_2 \\le 10^8$$$、$$$-10^8 \\le y_1 \\le y \\le y_2 \\le 10^8$$$)。\u003c/p\u003e"}},{"title":"输出","value":{"format":"HTML","content":"\u003cp\u003e对于每个测试案例,如果存在满足她要求的步行路线,则在单独的一行中输出“\u003cspan class\u003d\"tex-font-style-tt\"\u003eYES\u003c/span\u003e”。否则,输出“\u003cspan class\u003d\"tex-font-style-tt\"\u003eNO\u003c/span\u003e”。\u003c/p\u003e\n\u003cp\u003e你可以以任何大小写形式打印每个字母。\u003c/p\u003e"}},{"title":"示例 1","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\u003e6\n3 2 2 2\n0 0 -2 -2 2 2\n3 1 4 1\n0 0 -1 -1 1 1\n1 1 1 1\n1 1 1 1 1 1\n0 0 0 1\n0 0 0 0 0 1\n5 1 1 1\n0 0 -100 -100 0 100\n1 1 5 1\n0 0 -100 -100 100 0\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eYes\nNo\nNo\nYes\nYes\nYes\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}},{"title":"注意","value":{"format":"HTML","content":"\u003cp\u003e在第一个测试案例中,一个有效的锻炼步行路线是$$$$$$(0,0)\\rightarrow (-1,0) \\rightarrow (-2,0)\\rightarrow (-2,1) \\rightarrow (-2,2)\\rightarrow (-1,2)\\rightarrow(0,2)\\rightarrow (0,1)\\rightarrow (0,0) \\rightarrow (-1,0)$$$$$$。\u003c/p\u003e"}}]}