Skip to content

Commit

Permalink
Update euclid_gcd.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Atan-D-RP4 authored Dec 19, 2024
1 parent 97ff9a3 commit c0af0b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cp_lab/euclid_gcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ def findMinimalSolution(a, b):
if x > y:
x, y = -y, -x

return x, y, gcd
return x, y, gcd

a, b = input()
d, x, y = gcdExtended(a,b)
print(min(x,y), max(x,y), d)

0 comments on commit c0af0b7

Please sign in to comment.