Fixed import issue for python <3.9
parent
fec6a3aca0
commit
699631a3c1
5
day12.py
5
day12.py
|
@ -1,9 +1,12 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from itertools import combinations
|
from itertools import combinations
|
||||||
from math import lcm
|
from math import gcd
|
||||||
from functools import reduce
|
from functools import reduce
|
||||||
|
|
||||||
|
def lcm(a, b):
|
||||||
|
return (a * b) // gcd(a, b)
|
||||||
|
|
||||||
def comp(a, b):
|
def comp(a, b):
|
||||||
def f(arg):
|
def f(arg):
|
||||||
x, y = arg
|
x, y = arg
|
||||||
|
|
Loading…
Reference in New Issue