Piotr Czajkowski 2 years ago
parent
commit
34521825ac
1 changed files with 1 additions and 2 deletions
  1. 1 2
      11/code.go

+ 1 - 2
11/code.go

@@ -124,7 +124,7 @@ func allFlashed(input [][]octo) bool {
 
 func part2(input [][]octo) int {
 	var flashed int
-	count := 1
+	count := 101
 	for {
 		for y, row := range input {
 			for x, _ := range row {
@@ -160,6 +160,5 @@ func main() {
 
 	input := readInput(os.Args[1])
 	fmt.Println("Part1:", part1(input))
-	input = readInput(os.Args[1])
 	fmt.Println("Part2:", part2(input))
 }