← All problemsSign in

Maximum Production

CodeChefRating 833Open on judge ↗

Chefland has $7$ days in a week. Chef is very conscious about his work done during the week. There are two ways he can spend his energy during the week. The first way is to do $x$ units of work every day and the second way is to do $y$ ($\gt x$) units of work for the first $d$ ($\lt 7$) days and to do $z$ ($\lt x$) units of work thereafter since he will get tired of working more in the initial fe

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start