Code: The 67th 6-7 Integer Problem
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
long long test = 1;
cin >> test;
bool submit = true;
if (test >= 10010010)
submit = false;
if (test == 1)
submit = true;
while (test--) {
int n = 7;
vector<int> A(n);
for (auto &a : A)
cin >> a;
sort(A.begin(), A.end());
int answer = A.back();
for (int i = 0; i < 6; i++)
answer -= A.at(i);
cout << answer << "\n";
}
}