You are viewing a single comment's thread. Return to all comments →
int profit(int a, int b, int c) { int z,y; z=(c-a); y=(b-z); return y; }
int main() { int n,a,b,c,i,result=0; scanf("%d", &n); if(n<=100 && n>0) { for(i = 0; i < n; i++) { result=0; scanf("%d%d%d",&a,&b,&c); if(a>1 && b>1 && c>2 && a
Seems like cookies are disabled on this browser, please enable them to open this website
Combo Meal
You are viewing a single comment's thread. Return to all comments →
include
include
include
include
include
include
include
int profit(int a, int b, int c) { int z,y; z=(c-a); y=(b-z); return y; }
int main() { int n,a,b,c,i,result=0; scanf("%d", &n); if(n<=100 && n>0) { for(i = 0; i < n; i++) { result=0; scanf("%d%d%d",&a,&b,&c); if(a>1 && b>1 && c>2 && a