21
しょーた
Last seen 4 years ago
Member for 10 years, 3 months, 2 days
Difficulty Normal
'Ama'grammer from Japan.
Working as a pre-sales and post-sales engineer and product manager for some software products.
Was a test engineer years ago.
Was a programmer decades ago.
It's funny x→y is represented x<=y. The direction of the arrows look opposite ;)
More
lines 19-20 should better be
st = [ [ 2 < sum(sum(r[max(0, j-2):j+1]) for r in st[max(0, i-2):i+1]) -
(st[i-1][j-1] / 2 if 0 < i < h+1 and 0 < j < w+1 else 0) < 4
More