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