Init
This commit is contained in:
parent
24388aecb3
commit
c8b06176bf
9 changed files with 305 additions and 0 deletions
14
python_symb/tools.py
Normal file
14
python_symb/tools.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from __future__ import annotations
|
||||
from typing import *
|
||||
|
||||
|
||||
def gcd(a, b):
|
||||
|
||||
if b > a:
|
||||
return gcd(b, a)
|
||||
|
||||
if b == 0:
|
||||
return a
|
||||
|
||||
return gcd(b, a % b)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue