Solve 71 in Python.

This commit is contained in:
2019-08-01 09:38:51 -04:00
parent c47970642a
commit 8b1a4fa6ef
2 changed files with 29 additions and 2 deletions

View File

@@ -195,6 +195,7 @@ def permutations(iterable):
yield elem + ps
@lru_cache(maxsize=1000000)
def gcd(a, b):
while a % b != 0:
a, b = b, a % b