From e5f91b28b1a6dd1617b4222cfc2d1a0e200bfeae Mon Sep 17 00:00:00 2001 From: setop Date: Mon, 4 Dec 2023 16:13:55 +0100 Subject: [PATCH] day 1 refactor loop --- d01/run.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/d01/run.py b/d01/run.py index 63a0022..d008c1e 100644 --- a/d01/run.py +++ b/d01/run.py @@ -6,13 +6,11 @@ if sys.argv[1] == "2": def process_line(l): k = list() - p = 0 - while (p0 else 0 R=0