Company: Auxia_22july
Difficulty: medium
Challenge 4b Problem Description A base commander is organizing supply logistics for a remote outpost of n crew members, and feeding everyone properly is a central concern. The supply depot stores m single-day food packages, and each package belongs to some food type a i . Every crew member must consume exactly one food package per day, and because their bodies adapt poorly to variety under the harsh conditions, each individual crew member has to stick to a single food type for the whole mission — though different crew members are free to be assigned different types (or the same type as each other). Formally, for each crew member j the commander picks a food type b j , and on every day of the mission crew member j consumes one package of type b j . Different crew members can be given different values of b j . Determine the greatest number of days the outpost can be sustained while honoring these rules. Input Input: An integer array The first element of the array has n - the number of t