#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #pragma GCC optimize("O3") #pragma GCC target("sse4") typedef double LD; typedef long long LL; typedef pair PII; typedef pair PDD; typedef pair PLL; typedef vector VI; typedef vector VLL; typedef vector VCH; typedef vector VLD; typedef vector VS; typedef vector VSS; typedef vector VVI; typedef vector VVLL; typedef vector VVCH; typedef vector VPII; typedef vector VPLL; typedef vector VPDD; #define MP make_pair #define PB push_back #define X first #define Y second #define next fake_next #define prev fake_prev #define left fake_left #define right fake_right #define FOR(i,a,b) for(int i = (a); i < (b); ++i) #define RFOR(i,b,a) for(int i = (b) - 1; i >= (a); --i) #define REP(i, t) FOR(i,0,t) #define ALL(a) a.begin(), a.end() #define SZ(a) (LL)((a).size()) const LD PI = acos(-1.0); const LD EPS = 1e-9; const LL mod = 1000000007; const LL INF = 1e9; const LL LINF = 1e9; const LL MAX = 2e5 + 7; const LL MAXN = 2e5; int main() { ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); //freopen("In.txt", "r", stdin); //freopen("Out.txt", "w", stdout); int t; cin >> t; FOR(i, 0, t) { LL x, y, z; cin >> x >> y >> z; LL ans = x + y - z; //ans *= -1; cout << ans << endl; } return 0; }