One Line Solution
Complexity
Time complexity: O[1]

Space complexity: O[1]
Code
# Complexity
- Time complexity: O[1]
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity: O[1]

# Code
```cpp []
class Solution {
public:
    int maxContainers(int n, int w, int maxWeight) {
        return min(n*n, maxWeight/w);
    }
};
```
```python []
class Solution(object):
    def maxContainers(self, n, w, maxWeight):
        return min(n*n, maxWeight/w)
```
['C++']