parent
4b5b25e56b
commit
772dda0bbc
|
@ -53,11 +53,10 @@ def flood(lava, border):
|
|||
x |= roll(a, 1, +1)
|
||||
x |= roll(a, 2, -1)
|
||||
x |= roll(a, 2, +1)
|
||||
x = x & ~border
|
||||
x = x & ~lava
|
||||
if (a == x).all():
|
||||
a |= border
|
||||
x &= ~lava
|
||||
b = a | x
|
||||
if (a == b).all():
|
||||
return a
|
||||
a = x
|
||||
a = b
|
||||
|
||||
solve()
|
||||
|
|
Loading…
Reference in New Issue