fix bug in animate day6

This commit is contained in:
Dmitry Fedotov
2024-12-16 00:02:33 +03:00
parent 62bb06578c
commit c11a5ed460
2 changed files with 4 additions and 2 deletions

View File

@@ -137,7 +137,10 @@ class Lab(object):
cls()
print(self)
while self.next():
while True:
ok, cyccled = self.next()
if not ok:
break
cls()
print(self)
print(self.cycles)

View File

@@ -23,7 +23,6 @@ def _concat2(l: list[int]) -> list[int]:
def may_be_true(val: int, lst: list[int], funcs) -> bool:
if len(lst) == 1:
return lst[0] == val
return any([may_be_true(val, f(lst), funcs) for f in funcs])
def solve1(eqs):