{"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\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 type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e丹尼斯厌倦了无聊的办公室工作,决定开一家快餐餐厅。\u003c/p\u003e\u003cp\u003e第一天,他做了$$$a$$$份饺子,$$$b$$$份蔓越莓汁和$$$c$$$份加了炼乳的薄煎饼。\u003c/p\u003e\u003cp\u003e丹尼斯餐厅的特色在于点餐程序。对于每位顾客,丹尼斯都会自己选择一套菜品给他们。在这个过程中,丹尼斯遵循以下规则:\u003c/p\u003e\u003cul\u003e \u003cli\u003e 每位顾客至少应该得到一道菜(饺子、蔓越莓汁、加炼乳的薄煎饼都算作菜品); \u003c/li\u003e\u003cli\u003e 每位顾客最多只能得到一份饺子、一份蔓越莓汁和一份加炼乳的薄煎饼; \u003c/li\u003e\u003cli\u003e 所有顾客得到的菜品组合都应该不同。 \u003c/li\u003e\u003c/ul\u003e\u003cp\u003e丹尼斯最多能够招待多少位顾客呢?\u003c/p\u003e"}},{"title":"输入","value":{"format":"HTML","content":"\u003cp\u003e第一行包含一个整数$$$t$$$($$$1 \\le t \\le 500$$$)— 要解决的测试用例数。\u003c/p\u003e\u003cp\u003e接下来的$$$t$$$行,每行包含整数$$$a$$$、$$$b$$$和$$$c$$$($$$0 \\leq a, b, c \\leq 10$$$)— 丹尼斯做的饺子、蔓越莓汁和加炼乳的薄煎饼的份数。\u003c/p\u003e"}},{"title":"输出","value":{"format":"HTML","content":"\u003cp\u003e对于每个测试用例,输出一个整数— 丹尼斯最多能够招待的顾客数。\u003c/p\u003e"}},{"title":"示例 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\u003e7\n1 2 1\n0 0 0\n9 1 7\n2 2 3\n2 3 2\n3 2 2\n4 4 4\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e3\n0\n4\n5\n5\n5\n7\n\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在示例的第一个测试用例中,丹尼斯可以给第一个顾客饺子,给第二个顾客一份蔓越莓汁,给第三个顾客一份蔓越莓汁和一份加了炼乳的薄煎饼。\u003c/p\u003e\u003cp\u003e在示例的第二个测试用例中,丹尼斯的餐厅并不太有前途:他无法招待任何顾客。\u003c/p\u003e\u003cp\u003e在示例的第三个测试用例中,丹尼斯可以招待四位顾客。第一位顾客将得到一份饺子、一份蔓越莓汁和一份加了炼乳的薄煎饼的丰盛午餐。第二位顾客只会得到饺子。第三位顾客将得到一份加了炼乳的薄煎饼,第四位顾客将得到一份薄煎饼和一份饺子。请注意,丹尼斯并没有用完所有准备好的食材,但无法再招待更多的顾客了。\u003c/p\u003e"}}]}