#include using namespace std; int profit(int burgerPrice, int sodaPrice, int comboPrice) { return burgerPrice + sodaPrice - comboPrice; } int main() { int numCases; cin >> numCases; for (int i = 0; i < numCases; ++i) { int burgerPrice, sodaPrice, comboPrice; cin >> burgerPrice >> sodaPrice >> comboPrice; cout << profit(burgerPrice, sodaPrice, comboPrice) << "\n"; } return 0; }