1 liner | Beats 100% | 
Approach(n*n*w<=maxWeight) is true then n*n else maxWeight/w.Complexity

Time complexity:
O(1)


Space complexity:
None

Code
# Approach
`(n*n*w<=maxWeight)` is true then `n*n` else `maxWeight/w`.

# Complexity
- Time complexity:
O(1)

- Space complexity:
None

# Code
```cpp []
class Solution {
public:
    int maxContainers(int n, int w, int maxWeight) {
        return (n*n*w<=maxWeight) ? n*n:maxWeight/w;
    }
};
```
['C++']