Food Costs Codechef solution

Tech Sadhu
Tech Sadhu
151 بار بازدید - 5 ماه پیش - Food CostsYou're a bit all
Food Costs



You're a bit all over the place as a college student. You used to eat
out at expensive restaurants almost every day until your parents gave
you a talking-to about being irresponsible. Now, you've got to control
your eating and spending habits.




So, here's the plan: you'll stick to the college mess for your meals
every day, except Sundays. On Sundays, you're treating yourself to those
fancy restaurant meals.

The cost is Rs. XX for the mess food each day, and Rs. YY for the restaurant splurges.




Now, what's the cost of food per week? Note that you don't have to pay for the mess on Sundays.

A week has seven days, as usual.



Input Format


The first and only line of input contains 22 space-separated integers, XX and YY.


Output Format



Output a single integer: the weekly cost of food.
5 ماه پیش در تاریخ 1402/11/17 منتشر شده است.
151 بـار بازدید شده
... بیشتر