{"trustable":true,"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爱丽丝和鲍勃是非常聪明的人,他们喜欢在空闲时间玩各种游戏。最令人惊讶的是,他们总是能找到最佳策略,这就是为什么他们一次又一次感到无聊。他们刚刚发明了一个新游戏,就像他们通常做的那样。\u003cbr\u003e新游戏的规则非常简单。在游戏开始时,他们写下N个随机正整数,然后轮流进行(先是爱丽丝):\u003cbr\u003e1. 减少一个数字一。\u003cbr\u003e2. 擦除任意两个数字并写下它们的和。\u003cbr\u003e每当一个数字减少到0时,它将被自动擦除。当所有数字最终被擦除时,游戏结束,不能进行下一轮的人将输掉游戏。\u003cbr\u003e问题是:如果两人都使用最佳策略,谁将赢得游戏?在他们再次对游戏感到无聊之前,快找出答案!\u003c/div\u003e"}},{"title":"输入","value":{"format":"HTML","content":"第一行包含一个整数T(1 \u003c\u003d T \u003c\u003d 4000),表示测试用例的数量。\u003cbr\u003e每个测试用例包含多行。\u003cbr\u003e第一行包含一个整数N(1 \u003c\u003d N \u003c\u003d 50)。\u003cbr\u003e接下来一行包含N个正整数A\u003csub\u003e1\u003c/sub\u003e ....A\u003csub\u003eN\u003c/sub\u003e(1 \u003c\u003d A\u003csub\u003ei\u003c/sub\u003e \u003c\u003d 1000),表示游戏开始时他们写下的数字。"}},{"title":"输出","value":{"format":"HTML","content":"对于输入中的每个测试用例,打印一行:“Case #X: Y”,其中X是测试用例编号(从1开始),Y要么是“Alice”,要么是“Bob”。"}},{"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\u003e3\r\n3\r\n1 1 2\r\n2\r\n3 4\r\n3\r\n2 3 5\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase #1: Alice\r\nCase #2: Bob\r\nCase #3: Bob\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}