Go
Code

# Code
```golang []
func maxContainers(n, w, maxWeight int) int {
	totalCells := n * n
	possibleByWeight := maxWeight / w
	if totalCells < possibleByWeight {
		return totalCells
	}
	return possibleByWeight
}
```
['Go']