#include using namespace std; typedef long long ll; int main() { ll t; cin>>t; while(t--) { ll a,b,c; cin>>a>>b>>c; ll ans=(a+b-c); cout<