{"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\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":"MD","content":"三名候选人参加的选举最近结束。第一名候选人获得a票,第二名候选人获得b票,第三名候选人获得c票。对于每个候选人,解决以下问题:该候选人应获得多少选票才能赢得选举(即该候选人的票数严格大于任何其他候选人的票数)?\n\n请注意,对于每个候选人,有必要独立解决此问题,即任何候选人的新增投票数不会影响获得其他两名候选人答案时的计算。"}},{"title":"Input","value":{"format":"MD","content":"第一行包含一个整数t(1≤T≤10^4)-测试用例的数量。然后,t测试用例随之出现。\n\n每个测试用例由一行组成,其中包含三个整数a、b和c(0≤a、 b,c≤10^9)."}},{"title":"Output","value":{"format":"MD","content":"对于每个测试用例,在单独的行中输出三个整数a、b和c(a、b、c≥0)用空格分隔-分别为第一个、第二个和第三个候选问题的答案。"}},{"title":"Example","value":{"format":"MD","content":"\u003cdiv class\u003d\"sample-test\"\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e5\n0 0 0\n10 75 15\n13 13 17\n1000 0 0\n0 1000000000 0\n\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e1 1 1\n66 0 61\n5 5 0\n0 1001 1001\n1000000001 0 1000000001\n\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}}]}