{"trustable":false,"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\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027$$$$$$\u0027, right: \u0027$$$$$$\u0027, display: true},\n {left: \u0027$$$\u0027, right: \u0027$$$\u0027, display: false},\n {left: \u0027$$\u0027, right: \u0027$$\u0027, display: true},\n {left: \u0027$\u0027, right: \u0027$\u0027, display: false}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e宁老板掌握着ACM社团的财政大权,每年ACM社团都会有一笔钱,用作平时的开销, 宁老板会把这笔钱分配到$$$n$$$个事务中, 但是受到小幻的诅咒, 宁老板分配钱的时候, 只能选择把其中一个已经分好的钱, 在把他$$$1$$$分为$$$2$$$, 具体会操作$$$n-1$$$ 次. 每次操作会把一份钱分成$$$2$$$份,$$$\\lfloor\\frac{w}{2}\\rfloor$$$ and $$$\\lceil\\frac{w}{2}\\rceil$$$ ($$$\\lfloor x \\rfloor$$$ and $$$\\lceil x \\rceil$$$ 分别表示向下和向上取整) \u003c/p\u003e\n\u003cp\u003e现在宁老板给出已经分配好的$$$n$$$份钱(随机排序), 小幻会来看看宁老板给出的钱能不能在合并在一起, 以此来判断宁老板有没有暗度陈仓.\u003c/p\u003e\n\u003cp\u003e如果被小幻逮到, 小幻就会半夜偷摸到宁老板宿舍, 悄悄告诉他: \"你也不想这件事被其他人知道吧~💕\"\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e$$$t$$$ ($$$1 \\le t \\le 10^4$$$) — 测试数据的次数\u003c/p\u003e\n\u003cp\u003e $$$n$$$ ($$$1 \\le n \\le 2 \\cdot 10^5$$$).\u003c/p\u003e\n\u003cp\u003e $$$n$$$ 个整数 $$$a_1, a_2, \\ldots, a_n$$$ ($$$1 \\le a_i \\le 10^9$$$).\u003c/p\u003e\n\u003cp\u003e保证$$$n$$$ 的总和不超过$$$2 \\cdot 10^5$$$.\u003c/p\u003e"}},{"title":"Output","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你可以输出任意的大小写字母 (比如, \u003cspan class\u003d\"tex-font-style-tt\"\u003eYES\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-tt\"\u003eYes\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-tt\"\u003eyes\u003c/span\u003e, \u003cspan class\u003d\"tex-font-style-tt\"\u003eyEs\u003c/span\u003e).\u003c/p\u003e"}},{"title":"Sample 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\u003e14\n1\n327\n2\n869 541\n2\n985214736 985214737\n3\n2 3 1\n3\n2 3 3\n6\n1 1 1 1 1 1\n6\n100 100 100 100 100 100\n8\n100 100 100 100 100 100 100 100\n8\n2 16 1 8 64 1 4 32\n10\n1 2 4 7 1 1 1 1 7 2\n10\n7 1 1 1 3 1 3 3 2 3\n10\n1 4 4 1 1 1 3 3 3 1\n10\n2 3 2 2 1 2 2 2 2 2\n4\n999999999 999999999 999999999 999999999\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eYES\nNO\nYES\nYES\nNO\nYES\nNO\nYES\nYES\nYES\nYES\nNO\nNO\nYES\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Note","value":{"format":"HTML","content":""}}]}