fix bug in animate day6
This commit is contained in:
@@ -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)
|
||||
|
@@ -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):
|
||||
|
Reference in New Issue
Block a user