From 699631a3c13f5aee2db6c1afb19bfe1d34d28dd8 Mon Sep 17 00:00:00 2001 From: Tibor Bizjak Date: Tue, 14 Mar 2023 16:17:27 +0100 Subject: [PATCH] Fixed import issue for python <3.9 --- day12.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/day12.py b/day12.py index 05c8ed5..57208ef 100644 --- a/day12.py +++ b/day12.py @@ -1,9 +1,12 @@ #!/usr/bin/env python3 from itertools import combinations -from math import lcm +from math import gcd from functools import reduce +def lcm(a, b): + return (a * b) // gcd(a, b) + def comp(a, b): def f(arg): x, y = arg