Double Trouble
**This problem has subtasks. You will receive $30$ points for solving the $K \leq N$ case.** You're given an array $A$ containing $N$ integers. You must perform the following operation **exactly** $K$ times: - Choose an index $i$ ($1 \leq i \leq N$), and multiply $A_i$ by $2$. That is, replace $A_i$ with $2\cdot A_i$. Find the minimum possible sum of the array $A$ after all $K$ operations ha
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