You are viewing a single comment's thread. Return to all comments →
My Python code that passed all test cases:
def solve(a, b, x, y): if math.gcd(a, b) == math.gcd(x, y): return "YES" return "NO"
Seems like cookies are disabled on this browser, please enable them to open this website
Possible Path
You are viewing a single comment's thread. Return to all comments →
My Python code that passed all test cases: