瀏覽代碼

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
 			}