From 3ac99f409ae6545e2f4fece4d9397d28d35b279b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 2 Dec 2021 13:58:27 +0100 Subject: Set file encoding when reading --- 2020/13/puzzle-2.py | 1 - 1 file changed, 1 deletion(-) (limited to '2020/13/puzzle-2.py') diff --git a/2020/13/puzzle-2.py b/2020/13/puzzle-2.py index 3965488..cf16c22 100755 --- a/2020/13/puzzle-2.py +++ b/2020/13/puzzle-2.py @@ -32,7 +32,6 @@ def main() -> None: buses = tuple(filter(lambda x: x != "x", ids)) modres = tuple(x if (x := bus - ids.index(bus)) != bus else 0 for bus in buses) - print(chinese_remainder(buses, modres)) -- cgit v1.2.3