예제 #1
0
def main():
    isOpen = stdarray.readBool2D()
    stdarray.write2D(flow(isOpen))
    stdio.writeln(percolates(isOpen))
예제 #2
0
def main():
    isOpen = stdarray.readBool2D()
    stdarray.write2D(flow(isOpen))
    stdio.writeln(percolates(isOpen))
예제 #3
0
def main():
    isAlive = stdarray.readBool2D()
    stdarray.write2D(living(isAlive))
    stdio.writeln(percolates(isAlive))