#CF2218B. The 67th 6-7 Integer Problem

    ID: 7043 传统题 1000ms 256MiB 尝试: 4 已通过: 1 难度: 10 上传者: 标签>贪心数学CodeforcesCodeforces Round 1090(Div4)Div4BCF2218B800

The 67th 6-7 Integer Problem

题目描述

给定 77 个整数,必须恰好选择 66 个取相反数,求操作后数组元素和的最大值。

输入格式

第一行整数 tt。每组一行 77 个整数。

输出格式

每组输出最大可能和。

样例

4
41 41 41 41 41 41 41
6 9 4 20 6 7 67
1 2 3 4 5 6 7
6 7 6 7 6 7 6
-205
15
-14
-31

数据范围

1t67671\le t\le676767ai67-67\le a_i\le67

来源

Codeforces Round 1090 (Div. 4), Problem B - The 67th 6-7 Integer Problem