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
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
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