day 12
This commit is contained in:
parent
0d12942dfe
commit
c79d562490
@ -15,6 +15,7 @@ func Part1(ctx aoc.Context) (int, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, fmt.Errorf("day12: failed to parse input: %w", err)
|
return 0, fmt.Errorf("day12: failed to parse input: %w", err)
|
||||||
}
|
}
|
||||||
|
ctx.Println(input.String())
|
||||||
|
|
||||||
ares := make([]int, len(input.Shapes))
|
ares := make([]int, len(input.Shapes))
|
||||||
for i, shape := range input.Shapes {
|
for i, shape := range input.Shapes {
|
||||||
@ -33,7 +34,7 @@ func Part1(ctx aoc.Context) (int, error) {
|
|||||||
solution += 1
|
solution += 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ctx.Println(input.String())
|
|
||||||
return solution, nil
|
return solution, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user