Table of Contents

### We Are Discuss About CODECHEF SOLUTION

Chef in his Office CodeChef Solution

## Chef in his Office CodeChef Solution

Recently Chef joined a new company. In this company, the employees have to work forÂ $X$Â hours each day from Monday to Thursday. Also, in this company, Friday is called Chill Day â€” employees only have to work forÂ $Y$Â hoursÂ $(Y<X)$Â on Friday. Saturdays and Sundays are holidays.

Determine the total number of working hours in one week.

### Input Format

- The first line contains a single integerÂ $T$Â â€” the number of test cases. Then the test cases follow.
- The first and only line of each test case contains two space-separated integersÂ $X$Â andÂ $Y$Â â€” the number of working hours on each day from Monday to Thursday and the number of working hours on Friday respectively.

### Output Format

For each test case, output the total number of working hours in one week.

## Chef in his Office CodeChef Solution

### Constraints

- $1â‰¤Tâ‰¤100$
- $2â‰¤Xâ‰¤12$
- $1â‰¤Y<X$

### Sample 1:

3 10 5 12 2 8 7

45 50 39

### Explanation:

## Chef in his Office CodeChef Solution

**Test caseÂ $1$:**Â The total number of working hours in a week are:Â $10(Monday)+10(Tuesday)+10(Wednesday)+10(Thursday)+5(Friday)=45$

**Test Case 2:**Â The total number of working hours in a week are:Â $12(Monday)+12(Tuesday)+12(Wednesday)+12(Thursday)+2(Friday)=50$

**Test Case 3:**Â The total number of working hours in a week are:Â $8(Monday)+8(Tuesday)+8(Wednesday)+8(Thursday)+7(Friday)=39$

## SOLUTION

## Chef in his Office CodeChef Solution

## SOLUTION

## Chef in his Office CodeChef Solution

## SOLUTION

Yhaa You have done it but next? if YOU Want to Get Others Please Visit HereÂ ScishowEngineerÂ Â ThenÂ **Follow US HEREÂ **andÂ Join Telegram.

If You Want To Learn Something New Then Visit OurÂ Official Channel YOUTUBE