{"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\nWZ学姐有一个边长为 $n$ 的等边三角形.这个大三角形是由 $ n^2 $ 个边长为 $1$ 的小三角形构成的.\n\u003cbr\u003e\u003cbr\u003e\n学姐打算在满足以下限制的前提下,向三角形的顶点填充数字:\n\u003cbr\u003e\u003cbr\u003e\n・ 填充的数字必须是 $0$ , $1$ , $2$ .\u003cbr\u003e\n・ 在大三角形最左边上的点不能填充$0$,在大三角形最右边的点不能填充$1$,在大三角形最下边的点不能填充$2$\u003cbr\u003e\n・ 对于每个边长为 $1$的小三角形,它三个顶点上的和不能是$3$的倍数 .\u003cbr\u003e\u003cbr\u003e\u003cimg style\u003d\"max-width:100%;\" src\u003d\"CDN_BASE_URL/9e7c385a5a0034af88fcec35bc4f78b0?v\u003d1660884579\"\u003e\u003cbr\u003e\u003cbr\u003e\n学姐在面对这个问题时百思不得其解. 于是她转而向你求助.\n\u003cbr\u003e\n请告诉学姐,对于一个边长为$n$的大三角形,能不能在不违反上述规则的情况下把数字都填入每个点?\n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\n有多组询问 $T$ ($1 \\le T \\le 1000$).每次询问当大三角形边长为$n$ ($1 \\leq n \\leq 10^3$)时有没有可能完成任务"}},{"title":"Output","value":{"format":"HTML","content":"\n对于每个询问 ,如果可以填充回答$\\rm Yes$ 否则回答 $\\rm No$"}},{"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\u003e2\n1\n2\n\u003c/pre\u003e\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e\u003cpre\u003eNo\nNo\n\u003c/pre\u003e\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}