#include #include using namespace std; int getprofit(int b , int s , int c) { int sum = b + s; int profit = sum - c; return profit; } int main() { int t; cin>>t; vector ans; for(int i=0;i>b>>s>>c; int a = getprofit(b,s,c); ans.push_back(a); } for(int j=0;j