#include using namespace std; int profit(int b, int s, int c) { return (b + s - c); } int main() { int t,b,s,c,i,j; cin>>t; for(i = 0;i < t;i++) { cin>>b>>s>>c; cout<