• + 1 comment

    Easy one in C++, just using the GCD:

    int restaurant(int l, int b) 
    {
        int size = __gcd(l, b);
        
        return (l/size) * (b/size);
    }