Explorar el Código

Stupid mistake:(

Piotr Czajkowski hace 2 semanas
padre
commit
110cd1ea55
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      01/code.go

+ 1 - 1
01/code.go

@@ -74,7 +74,7 @@ func parts(rotations []Rotation) (int, int) {
 		}
 
 		if dial == 0 {
-			if changed > 0 {
+			if changed > 0 && rotation.Clicks%100 == 0 {
 				changed -= 1
 			}