You are viewing a single comment's thread. Return to all comments →
def solve(a, b, c): if c>a and c>b: return 'NO' if b>a: a^=b b^=a a^=b const=a-b i=a while i!=0: if i==c: return 'YES' if i>=b: i-=b else: i+=const return 'NO'
Seems like cookies are disabled on this browser, please enable them to open this website
Die Hard 3
You are viewing a single comment's thread. Return to all comments →