ソースを参照

Stupid mistake:(

Piotr Czajkowski 2 週間 前
コミット
110cd1ea55
1 ファイル変更1 行追加1 行削除
  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
 			}