OFFICE-EDITORIAL

PROBLEM LINK:

Contest
Practice

Setter: jeevan_adm
Testers: tejas10p, rivalq
Editorialist: kiran8268

DIFFICULTY:

532

PREREQUISITES:

None

PROBLEM:

Given the working hours from Monday to Thursday as X hours per day and that of Friday being Y hours, our objective is to determine the total number of working hours in one week.

EXPLANATION:

Total number of working hours from Monday - Thursday[4 days] = 4 \times X. And the working hours on a Friday is Y.
Thus the total number working hours in one week is - (4 \times X) + Y

TIME COMPLEXITY:

Time complexity is O(1).

SOLUTION:

Editorialist's Solution
int t;
	cin>>t;
	while(t--)
	{
	    int x,y;
	    cin>>x>>y;
	    cout<<4*x+y<<"\n";
	}