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