summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xprog/aoc/23/5/1.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/prog/aoc/23/5/1.py b/prog/aoc/23/5/1.py
index be46b5f..a64ee26 100755
--- a/prog/aoc/23/5/1.py
+++ b/prog/aoc/23/5/1.py
@@ -44,12 +44,12 @@ for s in seeds:
l = get_next_step(l, m)
# print("l", l)
locations[s] = l
-print(min(locations.items(), key=lambda x: x[1]))
+print(min(locations.items(), key=lambda x: x[1])[1])
from interval import interval, inf
semena = interval()
for i in range(len(seeds)//2):
semena |= interval([seeds[2*i], seeds[2*i]+seeds[2*i+1]])
-print(semena)
+# print(semena)
def celoštevilski_komplement(intervala):
r = interval()
for i in range(len(intervala)):
@@ -79,4 +79,4 @@ def go_deeper(m, vhod):
return r
for i in range(len(maps)):
semena = go_deeper(maps[i], semena)
-print(semena)
+print(semena[0][0])