[Solution] Chef in his Office CodeChef Solution 2022
Problem
Recently Chef joined a new company. In this company, the employees have to work for hours each day from Monday to Thursday. Also, in this company, Friday is called Chill Day — employees only have to work for hours 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 — the number of test cases. Then the test cases follow.
👇👇👇👇👇
- The first and only line of each test case contains two space-separated integers and — 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.
Explanation:
Test case : The total number of working hours in a week are:
Test Case 2: The total number of working hours in a week are:
Test Case 3: The total number of working hours in a week are:
No comments:
Post a Comment