aboutsummaryrefslogtreecommitdiff
path: root/SumsOfSubSequence.cpp
blob: 9460ce374888647d0e44e9d16a59feb8196d0bd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<bits/stdc++.h>

using namespace std;

int main() {
  int tt; cin >> tt;
  while(tt--) {
    vector<int> v(7);
    for(int &x : v) {
      cin >> x;
    }
    cout << v[0] << " " << v[1] << " " << v[6] - v[1] - v[0] << endl;
  }
}