コード例 #1
0
def read_int_1d():
    count = stdio.read_int()
    a = create_1d(count, None)
    for i in range(count):
        a[i] = stdio.read_int()

    return a
コード例 #2
0
def read_float_2d():
    row_count = stdio.read_int()
    col_count = stdio.read_int()
    a = create_2d(row_count, col_count, 0.0)

    for row in range(row_count):
        for col in range(col_count):
            a[row][col] = stdio.read_float()

    return a
コード例 #3
0
def read_bool_2d():
    row_count = stdio.read_int()
    col_count = stdio.read_int()
    a = create_2d(row_count, col_count, False)

    for row in range(row_count):
        for col in range(col_count):
            a[row][col] = stdio.read_bool()

    return a