
n * n을 통해 총 컨테이너의 수 정의최대 무게 / 컨테이너 무게를 통해 적재 가능한 컨테이너의 수 정의function maxContainers(n: number, w: number, maxWeight: number): number {
const containers = n * n
const canLoadWeight = Math.floor(maxWeight / w)
return Math.min(containers, canLoadWeight)
};