#include #include #include #include #include using namespace std; typedef long long int ll; int main() { ll t; cin>>t; while(t--){ ll a,b,c; cin>>a>>b>>c; cout<<(a+b-c)<<"\n"; } /* Enter your code here. Read input from STDIN. Print output to STDOUT */ return 0; }