Payment Scheme
Chef picked out several items in a shop, and now has to pay for them. The shop offers Chef two payment schemes: 1. Pay $100$ coins immediately, and then pay $X$ coins **every week** for the next **four** weeks. 2. Pay $300$ coins immediately, with no future payments required. Find the minimum possible number of coins Chef needs to pay if he chooses the payment scheme appropriately. ### Input -
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.
Sign in to chat with the tutor and save your progress.
Sign in to start