Question DSA-MATH-0065
HardWhat is the output of this code?
def egcd(a, b):
if b == 0: return a, 1, 0
g, x, y = egcd(b, a % b)
return g, y, x - a // b * y
g, x, y = egcd(240, 46)
print(g, 240 * x + 46 * y, pow(7, -1, 26))
- A.
2 0 15
- B.
2 2 15
- C.
Sign up free to see the answer and a step-by-step explanation.