In a Mars colony resource management system, the colony's life support module requires a specific allocation of oxygen, water, and food to sustain its inhabitants. The system has 846 units of oxygen, 275 units of water, and 938 units of food available for allocation. The colony's administrator needs to determine the maximum number of inhabitants that can be supported given these resources, with each inhabitant requiring 7 units of oxygen, 3 units of water, and 11 units of food. The administrator must write a function to calculate this maximum number of inhabitants.
Analyze constraints and compute optimal solutions step-by-step.
No dry run loaded.
🚀 Practice this problem
Run code, get AI hints & track streak