{"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\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":"MD","content":"In CCPC contests, you will get \"Time Limit Exceeded\" when your program tried to run during too much time. Setting suitable time limit for problems is vital to a contest.\n\u003c/p\u003eMr. Bread is preparing problems for a coming contest with his friends. For each problem, there will be a \"Main Correct Solution\" denotes the standard solution program written by the author. There will also be several \"Correct Solutions\" denote solution programs intended to pass.\n\u003c/p\u003eAssume there are n programs in total, labeled by 1,2,…,n. The 1-th program denotes the \"Main Correct Solution\" while others are \"Correct Solutions\". The i-th program runs in ai seconds.\n\u003c/p\u003eAccording to the rules in Mr. Bread\u0027s mind, the time limit x should meet all the rules below:\n\u003c/p\u003e· The constraint can\u0027t be too tight, which means x≥3a1.\n· All the \"Correct Solutions\" should pass, which means x≥(ai)+1 for all i∈[2,n].\n· x should be the smallest even integer meeting the rules described above.\n\u003c/p\u003ePlease write a program to find the time limit x.\n"}},{"title":"Input","value":{"format":"MD","content":"The first line of the input contains an integer T(1≤T≤10), denoting the number of test cases.\n\u003c/p\u003eIn each test case, there is one integer n(2≤n≤10) in the first line, denoting the number of programs.\n\u003c/p\u003eIn the second line, there are n integers a1,a2,...,an(1≤ai≤10).\n"}},{"title":"Output","value":{"format":"MD","content":"For each test case, print a single line containing an integer, denoting the value of x."}},{"title":"Sample Input","value":{"format":"MD","content":"2\n2\n1 3\n2\n1 4"}},{"title":"Sample Output","value":{"format":"MD","content":"4\n6"}}]}