Station Allocation
There are $N$ space stations orbiting around the Earth, and $C_i$ indicates the maximum capacity the $i^{th}$ station can hold. Additionally, there are $Q$ missions that must be carried out. Each mission has two requirements: a crew requirement $X$ and a storage requirement $Y$. The crew must all stay in a single cabin, while the other $N-1$ cabins can be used for storage. If cabin $i$ is ch
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