• + 0 comments

    *My Solution using Python *

    from math import gcd x=int(input("")) for i in range(x): a, b, c = map(int, input().split()) if (c <= max(a, b) and c % gcd(a, b) == 0): print ("YES") else : print ("NO")