#include using namespace std; int t; int profit(int b, int s, int c) { int r,r1; r=b+s; r1=r-c; return r1; } int main() { cin >> t; for(int a0 = 0; a0 < t; a0++){ int b; int s; int c; cin >> b >> s >> c; int result = profit(b, s, c); cout << result << endl; } return 0; }