def func(): serialize() for i in range(n): for j in range(n): ti.append(x.parent(), j, i) for i in range(n): l[i] = ti.length(x.parent(), i)
def func(): serialize() for i, j, k in val: if i < 2 and j < 2 and k < 2: a = 0 for di, dj, dk in ti.ndrange((0, 2), (0, 2), (0, 2)): if val[i + di, j + dj, k + dk] == 1: a = val[i + di, j + dj, k + dk] for di, dj, dk in ti.ndrange((0, 2), (0, 2), (0, 2)): val[i + di, j + dj, k + dk] = a
def func(): serialize() for i in range(n // 4): x[i * 4][1, 0] = i