#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int t,o; cin >> t; for(o=0;o> b >> s >> c; int profit = (b+s) - c; cout << profit << endl; } return 0; }