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