summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--4.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/4.py b/4.py
index eeb929e..0d44156 100644
--- a/4.py
+++ b/4.py
@@ -26,8 +26,8 @@ class Board:
def call(self, num: int) -> None:
if num not in self.nums: return
pos: int = self.cells.index(num)
- self.col_hits[pos // self.width] += 1
- self.row_hits[pos // self.height] += 1
+ self.col_hits[pos % self.width] += 1
+ self.row_hits[pos // self.width] += 1
self.unmarked_sum -= num
self.has_bingo = (
any(hits == self.height for hits in self.col_hits) or