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