{"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\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宝宝Ehab正在玩弄数组。他有一个长度为$$$n$$$的数组$$$a$$$。他定义一个数组是好的,如果没有办法将其分割成$$$2$$$个子序列,使得第一个子序列中元素的和等于第二个子序列中元素的和。现在他想要移除最少数量的元素$$$a$$$,使得它成为一个好的数组。你能帮帮他吗?\u003c/p\u003e\u003cp\u003e一个序列$$$b$$$是数组$$$a$$$的子序列,如果$$$b$$$可以通过删除一些(可能为零或全部)元素得到$$$a$$$。数组的分割是将其分成$$$2$$$个子序列的一种方式,使得每个元素恰好属于一个子序列,你必须使用所有的元素,并且不能共享任何元素。\u003c/p\u003e"}},{"title":"输入","value":{"format":"HTML","content":"\u003cp\u003e第一行包含一个整数$$$n$$$($$$2 \\le n \\le 100$$$)— 数组$$$a$$$的长度。\u003c/p\u003e\u003cp\u003e第二行包含$$$n$$$个整数$$$a_1$$$, $$$a_2$$$, $$$\\ldots$$$, $$$a_{n}$$$($$$1 \\le a_i \\le 2000$$$)— 数组$$$a$$$的元素。\u003c/p\u003e"}},{"title":"输出","value":{"format":"HTML","content":"\u003cp\u003e第一行应包含你需要移除的最少元素数量。\u003c/p\u003e\u003cp\u003e第二行应包含你要移除的元素的索引,用空格分隔。\u003c/p\u003e\u003cp\u003e我们可以证明答案总是存在。如果有多个解决方案,你可以打印任何一个。\u003c/p\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\u003e4\n6 3 9 12\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1\n2\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\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\u003e2\n1 2\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e0\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在第一个示例中,你可以将数组分割成$$$[6,9]$$$和$$$[3,12]$$$,所以你至少需要移除$$$1$$$个元素。移除$$$3$$$就足够了。\u003c/p\u003e\u003cp\u003e在第二个示例中,数组已经是好的,所以你不需要移除任何元素。\u003c/p\u003e"}}]}