aboutsummaryrefslogtreecommitdiff
path: root/2020/13/puzzle-1.py
diff options
context:
space:
mode:
Diffstat (limited to '2020/13/puzzle-1.py')
-rwxr-xr-x2020/13/puzzle-1.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/2020/13/puzzle-1.py b/2020/13/puzzle-1.py
index ef83817..d39c2a6 100755
--- a/2020/13/puzzle-1.py
+++ b/2020/13/puzzle-1.py
@@ -4,9 +4,7 @@
def main() -> None:
with open("input", "r", encoding="utf-8") as f:
time = int(f.readline())
- ids = list(map(int, f.readline().replace(",x", "").split(",")))
-
- ids.sort()
+ ids = sorted(map(int, f.readline().replace(",x", "").split(",")))
min = -1
x = 0