#include using namespace std; int main(void){ int cases; int burgerCost, sodaCost, comboCost; int fixedProfit; cin >> cases; while(cases--){ cin >> burgerCost >> sodaCost >> comboCost; fixedProfit = burgerCost - (comboCost - sodaCost); cout << fixedProfit << endl; } return 0; }