#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; while(t--){ int a, b, c, d; cin >> a >> b >> c; d = abs(c-(a+b)); cout << d << endl; } return 0; }