• + 0 comments

    def restaurant(l, b):

    N_min = min(l,b)
    for i in range(N_min,0,-1):
         if l%i + b%i == 0:
            return( (l*b)//(i**2) )
            break
    return l*b