Exemplo n.º 1
0
def main():
    isOpen = stdarray.readBool2D()
    stdarray.write2D(flow(isOpen))
    stdio.writeln(percolates(isOpen))
Exemplo n.º 2
0
def main():
    isOpen = stdarray.readBool2D()
    stdarray.write2D(flow(isOpen))
    stdio.writeln(percolates(isOpen))
Exemplo n.º 3
0
def main():
    isAlive = stdarray.readBool2D()
    stdarray.write2D(living(isAlive))
    stdio.writeln(percolates(isAlive))