{"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":"MD","content":"有6种宝石,价值分别为1,2,3,4,5,6。\n现在有一个长度为6的数组,第i个数字表示价值为i的宝石的数量。\n例如:[1,0,1,2,0,0]表示有一个价值为1的宝石,一个价值为3的宝石和两个价值为4的宝石。\n请判断能否将所有宝石分为两部分,使得两部分价值相等。\n注意:宝石不能分割,比如价值为6的宝石不能分割为两个价值为3的宝石。"}},{"title":"Input","value":{"format":"MD","content":"每一行输入描述一个要划分的宝石集合。\n\n每个集合有6个非负整数a1, a2,…, a6,其中ai为价值i的宝石数量。\n\n宝石的最大总数将是20000。\n\n输入文件的最后一行为\u0027\u0027 0 0 0 0 0 \"; 不用处理此行。"}},{"title":"Output","value":{"format":"MD","content":"\n对于每一行输入,输出Collection #k:, 其中k表示第一个样例(从1开始),然后输出Can be divided.(可以分成两部分)或者Can\u0027t be divided.(不可以分成两部分)。\n\n在每个测试用例之后输出一个空行。\n"}},{"title":"Sample Input","value":{"format":"MD","content":"\u003cpre\u003e1 0 1 2 0 0\n1 0 0 0 1 1\n0 0 0 0 0 0\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"MD","content":"\u003cpre\u003eCollection #1:\nCan\u0027t be divided.\n\nCollection #2:\nCan be divided.\u003c/pre\u003e"}}]}