Just one line solution😂😂😂😂😂, beats 100% of the solutions.
Code
# Code
```java []
class Solution {
    public int maxContainers(int n, int w, int maxWeight) {
        return Math.min(maxWeight/w, n*n);
    }
}
```
['Java']