Parcourir la source

Stupid mistake:(

Piotr Czajkowski il y a 2 semaines
Parent
commit
110cd1ea55
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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
 			}