This commit is contained in:
thib8956 committed 2026-11-11 15:36:53 +01:00
1 parent 0232b9326d
commit 5c3fb89870
50 files changed
+97 -117

No files matched your search

+2 -2
View File
@@ -9,7 +9,7 @@ DIRECTIONS = {
def find_start_pos(grid):
for y, row in enumerate(grid):
for x, _ in enumerate(row):
if grid[y][x] == "@":
if row[x] == "@":
return complex(x, y)
@@ -69,7 +69,7 @@ def calculate_gps_coords(grid):
total = 0
for y, row in enumerate(grid):
for x, _ in enumerate(row):
if grid[y][x] == "O":
if row[x] == "O":
total += 100*y + x
return total