We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- All Contests
- HourRank 26
- Combo Meal
- Discussions
Combo Meal
Combo Meal
Sort by
recency
|
12 Discussions
|
Please Login in order to post a comment
my Solution to this code will be
very simple....
int profit(int a, int b, int c) { int z,y; z=(c-a); y=(b-z); return y; }
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
simple, but trickey...