Light Mode
Dark Mode
It’s not clear where I made a mistake, it doesn’t

def greatestcommondivisor(args: int) -> int: def gcd(a,b): if b == 0: return a return gcd(b,abs(a-b*2)%b) result = args[0] for i in range(1,len(args)): result = gcd(result,args[i])

return abs(result)
Created: Nov. 25, 2023, 3:08 p.m.
Updated: Nov. 25, 2023, 4:18 p.m.
0
13
User avatar
msibirov1975