Budget Allotment
This year's annual budget involved a discussion on $N$ sectors where the $i^{th}$ sector was initially allocated an amount $A_i$. It was later realised that a minimum budget of $X$ is required by each sector. Allocation can be transferred from sector $i$ to any sector $j$ only if the final allocation for sector $i$ remains **at least** $X$. Find the **maximum** number of sectors that can mee
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