This website works better with JavaScript
Strona główna
Odkrywaj
Pomoc
Zaloguj się
taddeus
/
projecteuler
Obserwuj
1
Polub
0
Forkuj
0
Pliki
Problemy
0
Oczekujące zmiany
0
Wiki
Drzewo:
4a07d490c1
Gałęzie
Tagi
master
projecteuler
/
frac.py
frac.py
114 B
Historia
Czysty
1
2
3
4
5
6
7
8
def _gcd(a, b):
while b:
a, b = b, a % b
return a
def gcd(*args):
return reduce(_gcd, args)