# For Solution

Chef goes to the grocery store to purchase some objects. Fortunately there is a sale happening beneath which Chef will get the next provide:

• If Chef buys 33 objects then he will get the merchandise (out of these 33 objects) having the bottom worth as free.

For e.g. if Chef purchased 33 objects with the associated fee 6622 and 44, then he would get the merchandise with price 22 as free. So he would solely need to pay the price of the opposite two objects which will likely be 6+4=106+4=10.

Chef buys 33 objects having costs AABB and CC respectively. What’s the amount of cash Chef must pay?

## Get Lowest Free solution codechef

• The primary line will comprise an integer TT – variety of check circumstances. Then the check circumstances observe.
• The primary and solely line of every check case comprises three integers A,B,CA,B,C – the costs of the objects purchased by Chef.

### Output Format

For every check case, output the worth paid by Chef.

## Get Lowest Free solution codechef

• 1T1001≤T≤100
• 1A,B,C101≤A,B,C≤10

### Pattern Enter 1

3
6 2 4
3 3 3
8 4 4


### Pattern Output 1

10
6
12


## Get Lowest Free solution codechef

Take a look at case-1: Defined in the issue assertion.

Take a look at case-2: Since all of the three objects have the identical worth, Chef will get one in all them free and should pay the price of the opposite two objects which will likely be 3+3=63+3=6.

Take a look at case-3: Chef will get one of many objects having worth 44 as free and should pay the price of the opposite two objects which will likely be 8+4=128+4=12.