• + 1 comment
    def solve(a, b, c):
        hcf=math.gcd(a,b)
        if c<=max(a,b) and c%hcf==0:
              return "YES"
        return "NO"