import initial

This commit is contained in:
Vincent Bourdon
2026-06-10 10:21:18 +02:00
commit 5a03f8a38d
59 changed files with 4777 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
def count_blocks(line: tuple[bool, ...]) -> int:
blocks = 0
in_block = False
for cell in line:
if cell:
if not in_block:
blocks += 1
in_block = True
else:
in_block = False
return blocks