BackmediumUncategorized uncategorized medium

Mars Colony Resource Optimization Solution

Problem Statement

In the Mars colony resource management system, the colony's life support module requires a specific allocation of oxygen, water, and food to sustain the colonists. The system has 87 oxygen tanks, 219 water containers, and 463 food packets available. The colony's administrator needs to allocate these resources among 27 colonists, with each colonist requiring 3 oxygen tanks, 7 water containers, and 11 food packets per week. The administrator wants to determine the maximum number of weeks the colony can survive with the available resources.

Live Compiler
Loading...
Test Cases & Output
🔒 Sign up to run your code

🚀 Practice this problem

Run code, get AI hints & track streak

Sign Up Free