Pure Math approach - beats 100%
Code
# Code
```csharp []
public class Solution 
{
    public int MaxContainers(int n, int w, int maxWeight) 
    {
        if (n * n * w > maxWeight)
        {
            return maxWeight / w;
        }
        else
        {
            return n * n;
        }
    }
}
```
['Math', 'C#']